The application requires the assembly ... to be installed in global assembly cache

Viewed 3083

I have created an window application using C#. I am publishing the application which is successful.

When I am trying to install the application it is showing the below error.enter image description here

I am seen some solution which is about setting the project which automatically the same as below

enter image description here

I don't want to put the dll's in GAC.

Any suggestion or solution for this.

I have gone through the following urls

Error message "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC"
Unable to install or run the application: Click Once

4 Answers

I happened to me and complaining about NLog.dll, What I found is that my app referred one version of Nlog.dll and my library projects referred another version of Nlog.dll and manifest listed one version as dependency(install) and another version as dependency(requisite i.e. need to be present in the system even copy to local set to true).

Bottom line: if two version of the same dll referred across the dependent projects then that would be one of the root cause of the error.

Related