Ran into an error today doing a Click Once style deployment on my new PC. The end-user was getting an error ""Unable to install or run the application. The application requires ..." which proceeds to list the missing DLL and that it needs to be installed in the GAC.
I checked the reference and "Copy Local" was set to true so I knew the DLL was in the directory when the app runs locally but I found out that Click Once has a way of managing its dependency files.
When you right click on the project it brings up the project properties window. In VS2010 under the "Publish" tab there is an "Application Files" button. When you click this button it lists all the assemblies and gives you the option under the "Publish Status" column to choose if you want to include these files automatically in the deployment.
If you set to "Include" then its there but if its set to "Prerequisite" it will want that file to be installed on the machine prior to running the Click Once. Exclude is also an option but I don't think it does the prerequisite check.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment