每当我尝试从Web服务器上运行我的应用程序时,我都会遇到常见的解析器错误...应用程序在localhost中正常运行,当我将其发布到本地计算机上的IIS并在那里托管它时。任何想法可能是什么问题?
Server Error in '/' 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 '_3rd_party_data_reporting_tool.edtk'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="edtk.aspx.vb" Inherits="_3rd_party_data_reporting_tool.edtk" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /gpo/edtk.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
答案 0 :(得分:0)
最后解决方案是删除web.config文件中的注释...应用程序在我的localhost IIS上运行正常而不是在服务器IIS上的原因是IIS版本不同,服务器上的版本是不喜欢web.config中的评论。