Visual Studio .NET - Program will not run on Windows 7

Asked By David on 04-May-12 04:53 PM
Hi All

I have a program made in visual studio 2008 which will publish and run on my P/c which has visual studio 2008 loaded on it. The program will not run on any other that has not got visual studio loaded and the fault which comes up is as follows.
"The application requires that Assembly Microsoft.VisualBasic.PowerPack.Vs version 9.0.0.0 be installed in the Global Assembly Cache (GAC) first"
The above Powerpack is in the GAC and set to copy local but still I get this fault

Thanks

Dave
Peter Bromberg replied to David on 04-May-12 07:29 PM
Yes, but it is NOT installed on the target machine. What you probably want to do is make an installer project which includes the needed assembly and have it marked to install in the GAC.
[)ia6l0 iii replied to David on 04-May-12 09:40 PM
Yes, on the target machine, you should ensure that it is part of the GAC. You can verify this by going to C:\Windows\assembly and manually checking if the file is present. 

And how have you referred this assembly in your project? Have you made sure you referred it from GAC, or do you have a local copy, whose "copy local" property is set to true?. You should ideally refer from GAC, and also install this as prerequistie in your target machines

Hope this helps.
David replied to [)ia6l0 iii on 06-May-12 04:19 PM
Hi [)ia

I have the file in Application FilesFile name = (Microsoft.VisualBasic.PowerPacks.Vs.dll)  Publish Status = (Prerequisites)
DownLoad Group = (None) is this correct?
On Publish ,  Prerequisites Powerpacks 1.1 and 3.0 have not got ticks in the boxes ? there is not any reference to
Microsoft.VisualBasic.PowerPack.Vs version 9.0.0.0 anywhere.
Any Ideas please

Thanks

David

Jitendra Faye replied to David on 07-May-12 12:44 AM
I think you have to install  Power Pack bootstrapper package with your setup.

 
Follow this link here you will get details about this-

http://msdn2.microsoft.com/en-us/library/bb882689.aspx

Anil Kumar replied to David on 07-May-12 02:41 AM
Right click the References >MicrosoftVisualBasic  and set CopyLocal to true 

Do update us again.

Thank you
Anil