Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have a windows application in c# whcih I need to deploy. This has a server side and db access with clients connectng when required.

What is the best setup for deployment?

Users will download via a web site.

I am looking to have a setup like this:

1 user goes to web site, <br />
2 downloads application which installs and runs automatically, <br />
3 user is notified when updates are available and application updates automatically if user accepts.


I have tried click once application that checks updates before login and thought it was working fine.

Yestreday a colleague I was testing with got the following error:

Unable to install or run the application. The application requires that assembly Microsoft.VisualBasic.PowerPacks.Vs Version 9.0.0.0 be installed in the Global Assembly Cache(GAC) first.

He had previously installed and run the system and taken updates without any problem. This error came up after I published again but the error did not occur on machines with visual studio installed.

Please help
Posted
Comments
Henry Minute 17-Mar-11 7:01am    
You seem to be saying that the machine giving the error does not have the PowerPacks assembly installed, so surely the solution is to check for that and install it where required as part of your downloaded install.
milenalukic 17-Mar-11 7:07am    
He tried checking for updates but it did not solve the problem. Will give that another go tonight. What I cannot understand is that I did not use anything new in the update I made - It was a minor code change. - So why would it require any new components? Would users always require to have the latest windows updates for my system to work?
milenalukic 17-Mar-11 7:08am    
Also why would I need Visual Basic powerpacks when I am using c#? Its confusing.
#realJSOP 17-Mar-11 7:48am    
Maybe one or more of the assemblies you're using (but didn't necessarily write) requires it.

Assuming your colleague has using the same coimputer the whole time, the simple truth is that if it wasn't doing it before, and now it is doing it, then you added something to your code that now requires that assembly.

Review the changes you made, and you'll probably find the offending code.
 
Share this answer
 
v2
I found the solution.

John you are absolutely right and that was also what I was thinking, but couldn't think of anything I might have done!

I had added a line (drawing) to a form and that used the VB assemblies.

To solve the issue all I did was to go tho the proberties of the reference and set the copy local property to true.

Works fine now and thanks again.
 
Share this answer
 
Comments
Olivier Levrey 17-Mar-11 8:26am    
Then, you should accept John's solution to show the problem has been solved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900