我收到了常见的 YSOD Parser 错误,如下所示:
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
问题是我只有在将错误发布到目标网络服务器后才会收到错误消息。它在 localhost 中运行良好,如果我将它发布到我机器上的 IIS 并从那里运行它,它运行良好。任何想法可能是什么问题?