My asp.net site has to run on several client servers. It's working fine on a majority of them, but a couple have run into an error message on a few pages:
Compiler Error Message: CS0012: The type 'MetaNameValuePair' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.t_3vcono, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
The type 'MetaNameValuePair' is actually defined in a .cs file within my App_Code folder, not an external assembly. Is it failing to compile that .cs file?
The type 'System. Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.
You could resolve this CS0012 by compiling with /reference:cs0012b. dll;cs0012a. dll , or in Visual Studio by using the Add Reference Dialog Box to add a reference to cs0012a. dll in addition to cs0012b.
Attempt 1:
A similar question was asked a couple of months back and look at those answers.
Attempt 2:
Have you cleared the "Temporary ASP.Net Files" for the site, usually found at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files? There may be an old copy lingering around.
Had this numerous times. The solution is to close and open Visual Studio.
In my case at least it seemed to hove something to do wit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With