Posted tagged ‘Copy Local’

“Unable to install or run the application. The application requires that the assembly be installed in the Global Assembly Cache (GAC) first.”

January 2, 2009

I recevied this error while compiling my first C# production application. I had to do the following in Visual Studio for the project:

  1. In Solution Explorer, expand the References node and click the assembly listed in the error. Ensure Copy Local in the Properties grid is set to ‘True’.
  2. In the properties of the project, Publish | Application Files Tab, ensure the Publish Status for the assembly listed in the error is set to ‘Include’