在针对运行IIS 7并试图运行已部署的XCopy应用程序的Windows 2008 x64执行ASP.NET MVC 6应用程序的部署之后,我点击了"HTTP 403.14 -For禁忌“。
我遵循了http://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-standalone和http://docs.asp.net/en/latest/publishing/iis.html#xcopy-to-iis-server的步骤,我使用的是dnx x64.1.0.0-beta7。
发布于 2015-09-14 15:50:46
我添加了一个简单的测试default.aspx页面,得到了一个异常,它似乎表明ASP.NET MVC 6只在IIS7.5和更高版本的下运行。在转换为Windows 2008 R2和后来的的系统需求方面,至少在编写本文时是这样的:
Exception information:
Exception type: PlatformNotSupportedException
Exception message: IIS 7.5 or higher is required.
at AspNet.Loader.Error.Bootstrapper_RequiresIIS75()
at AspNet.Loader.Bootstrapper.LoadApplicationNet45(String appId, String appConfigPath, IProcessHostSupportFunctions supportFunctions, LoadApplicationData* pLoadAppData, Int32 loadAppDataSize, String runtimePackagePath, String appBasePath)
at AspNet.Loader.Bootstrapper.LoadApplication(String appId, String appConfigPath, IProcessHostSupportFunctions supportFunctions, LoadApplicationData* pLoadAppData, Int32 loadAppDataSize)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.ProcessHost.System.Web.Hosting.IProcessHostLite.ReportCustomLoaderError(String appId, Int32 hr, AppDomain newlyCreatedAppDomain)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)发布于 2015-09-11 19:30:08
403.14是不允许列出目录内容的错误代码。
确定已将目标目录设置为IIS中的应用程序吗?这似乎是最有可能的罪魁祸首。其他可能的情况是,应用程序池使用了错误的.NET版本(服务器上的内容除外),或者您错过了应用程序需要的文件夹,比如App_Data或其他什么。
https://stackoverflow.com/questions/32529919
复制相似问题