解析器错误消息:无法加载类型“TestMvcApplication.MvcApplication" [英] Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'

查看:46
本文介绍了解析器错误消息:无法加载类型“TestMvcApplication.MvcApplication"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我们的其中一台生产服务器上收到以下错误.不知道为什么它在 DEV 服务器上工作?

I am getting the following error on one of our production servers. Not sure why it is working on the DEV server?

解析器错误说明:解析服务此请求所需的资源时出错.请查看以下特定的解析错误详细信息并适当修改您的源文件.

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

解析器错误消息:无法加载类型TestMvcApplication.MvcApplication".

Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'.

源错误:

第 1 行:<%@ Application Codebehind="Global.asax.cs" Inherits="TestMvcApplication.MvcApplication" Language="C#" %>

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="TestMvcApplication.MvcApplication" Language="C#" %>

源文件:/global.asax 行:1

Source File: /global.asax Line: 1

不确定之前是否有人遇到过这个错误以及它是如何解决的,但我已经走到了尽头.任何帮助将不胜感激.

Not sure if anybody came across this error before and how it was solved, but I have reached the end. Any help would be appreciated.

我还需要提一下,这是发布的代码,所以都是编译的.我的编译器设置有问题吗?

I also need to mention that this is the published code, so all is compiled. Can there be something wrong with my compiler settings?

推荐答案

其他答案都不适合我.我通过更改 Web 项目的输出路径修复了我的错误.我已将其设置为 bindebug,但除非将输出路径设置为简单的bin",否则 Web 项目不起作用

None of the other answers worked for me. I fixed my error by changing the web project's output path. I had had it set to bindebug but the web project doesn't work unless the output path is set to simply "bin"

这篇关于解析器错误消息:无法加载类型“TestMvcApplication.MvcApplication"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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