-1

I had windows application and I published it and I installed it in other pc and when I was installing in this error apeared(you cannot run application that require that assembly microsoft sql server.connection info 9.0.242.0 ......)

Myworld
  • 1,861
  • 16
  • 45
  • 75
  • 2
    I bet that's not *actually* what the error message said. Please don't paraphrase, it's hard enough to debug this type of problem remotely as it is. If my psychic abilities are properly tuned, I suspect that the answers to [this question](http://stackoverflow.com/questions/558361/unable-to-install-or-run-the-application-the-application-requires-stdole-version) will provide some hints on solving the problem you're encountering. – Cody Gray - on strike Mar 06 '11 at 09:15
  • Did it say _exactly_ that? Please paste the whole error message. Where did the message come from, from the installer? – Albin Sunnanbo Mar 06 '11 at 09:16
  • 4
    @BlackBear: Why, exactly, do you hate C#? Because you can use it to produce applications that display error messages? Is there a language where that is *not* possible? – Cody Gray - on strike Mar 06 '11 at 09:22
  • @Cody Gray: because it's based on the .NET, so you must have the .NET installed in order to execute C# apps. BTW I hate Java too. They "pollutes" your pc with dlls reg keys etc – BlackBear Mar 06 '11 at 09:24
  • @BlackBear: C++ applications generally require a runtime library, at least in Windows. Additionally, this error has absolutely *nothing* to do with the .NET Framework. The only part we can see indicates it's about SQL Server, which even a C or C++ application could have a dependency on. – Cody Gray - on strike Mar 06 '11 at 09:26
  • @Cody Gray: Okok, I'm wrong. but I don't like it anyway :) – BlackBear Mar 06 '11 at 09:29
  • 2
    @BlackBear: Good to know. Consider adding that to your profile's "About Me" section, rather than as a comment to questions about C#. – Cody Gray - on strike Mar 06 '11 at 09:30

2 Answers2

1

Random guess...

You need with either SQL Server native client or SQL Server SMO. or both

gbn
  • 422,506
  • 82
  • 585
  • 676
0

You say "published" so I'm guessing it's a ClickOnce deployment.

One gotcha of the automated ClickOnce deployment (at least, it was as of VS2008) is that it doesn't automatically pick up the dependencies of any projects you reference in the project you publish from - you have to add the references into your main project by hand, then they will be added to the manifest, and then deployed to client machines upon installation.

Hope this helps.

DaveRead
  • 3,371
  • 1
  • 21
  • 24