IIS 7 – 虚拟path“null”映射到另一个应用程序,这是不允许的

当设置IIS 7 Farm进行负载平衡时,我遇到了问题。 添加4服务器到IIS场与适当的端口(8080,8081,8082,8083)。 同时添加IIS场的入站规则。 Tomcat实例监听这些端口。 当我打开url(我设置入站规则)时,我得到了以下exception:

The virtual path 'null' maps to another application, which is not allowed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: The virtual path 'null' maps to another application, which is not allowed.] System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8839122 System.Web.HttpContext.GetFilePathData() +36 System.Web.HttpContext.GetConfigurationPathData() +26 System.Web.Configuration.RuntimeConfig.GetConfig(HttpContext context) +43 System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow) +41 System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) +101 System.Web.HttpContext.ReportRuntimeErrorIfExists(RequestNotificationStatus& status) +538 

我怎样才能解决这个问题?

这是一个IIS错误 。 无论是升级到Server 2008 R2还是将重写规则从globalRules移到单个站点(这将只是您运行场的站点)。