请在类型名称中明确指定程序集. [英] Please specify the assembly explicitly in the type name.

查看:96
本文介绍了请在类型名称中明确指定程序集.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置Global.asax和后台代码,但出现以下错误:

I am trying to set up Global.asax and a Code behind page but I am getting the following error:

类型'Global'不明确:它可能来自程序集'C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ aaw \ 2de92fac \ 492e65b1 \ App_Code.gyumgjze.DLL'或来自程序集'C:\ Inetpub \ wwwroot \ AAW \ bin \ App_Code.DLL'.请在类型名称中明确指定程序集.

The type 'Global' is ambiguous: it could come from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aaw\2de92fac\492e65b1\App_Code.gyumgjze.DLL' or from assembly 'C:\Inetpub\wwwroot\AAW\bin\App_Code.DLL'. Please specify the assembly explicitly in the type name.

如何获取仅引用"C:\ Inetpub \ wwwroot \ AAW \ bin \ App_Code.DLL"文件的代码?

How can I get the code to reference only the 'C:\Inetpub\wwwroot\AAW\bin\App_Code.DLL' file?

感谢.

推荐答案

删除所有二进制文件并重新编译.

Delete all binaries and re-compile.

如果失败,请删除错误代码中列出的文件夹,然后重新编译并重新运行.每个.net应用程序都有一个global.asax文件,也许您正在同一位置运行两个.net站点.或者您的站点已经有一个global.asax文件?

Failing that, Remove the folder listed in the error code and re-compile and re-run.  Every .net app has a global.asax file and perhaps you are running two .net sites in the same location.  Or your site already has a global.asax file?

致谢,

mcm


这篇关于请在类型名称中明确指定程序集.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆