Server Error in '/myapp' Application.
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.Parser Error Message: Could not load type 'Web.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Web.Global" Language="C#" %>
|
Source File: /ierp2/global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Web项目引用了其它的类项目,打开Bin一看,下面是空的,才想起来之前做备份的时候执行了清理解决方案,这次发布的时候没有重新生成,重新生成之后,把Bin目录下的文件复制到发布目录的Bin目录下,问题解决。
在ASP.NET项目中遇到服务器错误时,通过检查并重新生成引用项目,解决了全局类加载失败的问题。详细步骤包括确认源文件、错误代码行、版本信息,并将Bin目录下的文件复制到发布目录的Bin目录下。
4万+

被折叠的 条评论
为什么被折叠?



