I know that an error message is common, and there are many questions about SO about this error, but no solutions have helped me so far, so I decided to ask a question. The difference with most of these questions is that I use the App_Code directory.
Error message:
CS0012: The type 'Project.Rights.OperationsProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'Project.Rights, version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Original file:
c:\inetpub\wwwroot\Test\Website\App_Code\Company\Project\BusinessLogic\Manager.cs
The following sentences here and here , I deleted all instances of Project.Rights.dll inside C: \ Windows \ Microsoft.NET /*.* According to this , I checked if the .cs files for which the compile action is set . They make. I also double-checked that the .cs file containing the type "Project.Rights.OperationsProvider" is being deployed in the App_Code directory.
For some reason, the application is not looking for a type in the App_Code directory. Since I deleted all instances of Project.Rights.dll (what I know), I do not know on which assembly the error message is mentioned.
afaf12 Dec 18 '13 at 14:37 2013-12-18 14:37
source share