ASP.NET页面说,我需要引用不存在的组件! [英] ASP.NET Page says I need to reference an assembly that does not exist!
问题描述
我的asp.net网站已在多个客户端服务器上运行。它的工作在其中的大部分罚款,但一对夫妇有几页遇到的错误消息:
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:
编译器错误信息:CS0012:类型'MetaNameValuePair'在未引用的程序集定义。您必须添加一个引用程序集APP_ code.t_3vcono,版本= 0.0.0.0,文化=中立,公钥=空'。
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'.
该型'MetaNameValuePair'在cs文件实际上定义我APP_ code文件夹,而不是外部组件内。难道不能编译cs文件?
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?
推荐答案
1的尝试:
<一个href=\"http://stackoverflow.com/questions/284433/strange-error-cs0012-the-type-x-is-defined-in-an-assembly-that-is-not-referenc\">A类似的问题被问几个月回去看看这些问题的答案。
A similar question was asked a couple of months back and look at those answers.
尝试二:
您是否已清除了临时ASP.Net文件的网站,通常位于C发现:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\临时ASP.NET文件?有可能是一个旧的副本徘徊在
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.
这篇关于ASP.NET页面说,我需要引用不存在的组件!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!