在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置 解决办法: http://www.mvpdata.com/article.asp?id=15
受益一次。 下面的错误是为什么,知道的朋友说一下,谢谢! 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 'NetBar.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="NetBar.Global" %> Source File: /global.asax Line: 1