我有一个生产系统和测试系统,都运行 IIS。在生产系统中,一切运行良好。在测试系统中,我有一个包含站点代码的文件夹的定向副本,该文件夹被设置为虚拟目录。App_Code 文件夹位于根目录中,包含所有 .cs 文件。在测试中运行同一站点时,我得到一个
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 'SPTasks.master'.
Source Error:
Line 1: <%@ Master Language="C#" inherits="SPTasks.master"%>
Line 2: <html>
Line 3: <head runat="server">
Source File: /SPTasks/master.master Line: 1
知道为什么这会在测试中而不是在生产中吗?代码是否由于某种原因无法编译?
谢谢!