"分析器错误信息:未能加载类型"在Global.asax中 [英] "Parser Error Message: Could not load type" in Global.asax
问题描述
我工作的一个MVC3项目,并收到以下错误:
I'm working on an MVC3 project and receive the following error:
分析器错误信息:未能加载类型'GodsCreationTaxidermy.MvcApplication
Parser Error Message: Could not load type 'GodsCreationTaxidermy.MvcApplication'.
源错误:
1号线:<%@应用codebehind =Global.asax.cs中继承=GodsCreationTaxidermy.Core.MvcApplicationLANGUAGE =C#%>
我得到的错误是无法加载GodsCreationTaxidermy.Core.MvcApplication但是在这个屏幕截图中,核心部分是不显示的错误:
The error I get is cannot load GodsCreationTaxidermy.Core.MvcApplication but in this screen shot the Core part isn't displaying in the error:
有没有人有任何意见或这个错误的解决方案?
Does anyone have any ideas or a solution to this error?
推荐答案
您的本地Web服务器运行的是不同的code比你实际工作。确保已停止调试,停止你的本地Web服务器,干净重建彼得建议,仔细检查您的Global.asax和Global.asax.cs中,然后重试。
Your local web server is running different code than what you're actually working on. Ensure you have stopped debugging, stop your local web server, clean and rebuild as Peter suggested, double-check your global.asax and global.asax.cs, and try again.
如果这还不行并且你正在使用本地IIS,请尝试删除IIS管理器中的网站并手动重新创建它。
If this doesn't work and you are using local IIS, try removing the site in IIS Manager and recreating it manually.
这篇关于"分析器错误信息:未能加载类型"在Global.asax中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!