“解析器错误消息:无法加载类型"在 Global.asax [英] "Parser Error Message: Could not load type" in Global.asax

查看:32
本文介绍了“解析器错误消息:无法加载类型"在 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 行:<%@ Application Codebehind="Global.asax.cs" Inherits="GodsCreationTaxidermy.Core.MvcApplication" Language="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 服务器运行的代码与您实际处理的代码不同.确保您已停止调试,停止您的本地 Web 服务器,按照 Peter 的建议进行清理和重建,仔细检查您的 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屋!

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