分析器错误信息:未能加载类型“TestMvcApplication.MvcApplication” [英] Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'

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

问题描述

我正在对我们生产的一台服务器出现以下错误。不知道为什么,它正在开发服务器上?

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号线:其中,%@应用codebehind =的Global.asax.cs继承=TestMvcApplication.MvcApplicationLANGUAGE =C#%>

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

源文件:/global.asax线:1

Source File: /global.asax Line: 1

不知道是否有任何人碰到这个错误之前,它是如何解决的,但我已经走到了尽头。 任何帮助将是AP preciated。

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.

我还需要一提的是,这是公布的code,所以所有被编译。 还能有什么毛病我编译器设置?

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项目的输出路径固定我的错误。我不得不将其设置为斌\调试,但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 bin\debug but the web project doesn't work unless the output path is set to simply "bin"

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

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