【发布时间】:2011-01-27 10:29:22
【问题描述】:
我为客户端创建了一个 ASP.NET 应用程序,所有文件都在其 D 盘上的一个文件夹中。
现在是时候开始生产了,所以我将所有文件和文件夹复制到同一驱动器上现有的经典 ASP 文件夹中。
当我浏览到应用程序时,它无法启动。
我能看到的唯一区别是开发站点不像生产站点那样需要 HTTPS。
我还确保两个文件夹的所有权限都相同。 我还使用 aspnet_regiis 工具确保 GAC 具有读取权限。
我的调试知识已经结束了,有人可以帮帮我吗。
这是我从应用程序事件日志中得到的错误消息。
Failed to initialize the AppDomain:/LM/W3SVC/3/Root
Exception: System.Configuration.ConfigurationErrorsException
Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
StackTrace: at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
------------------------
Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80131902
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
-------------------------
aspnet_wp.exe (PID: 4568) stopped unexpectedly.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
这是网络错误消息:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
感谢您的帮助,
史蒂夫
【问题讨论】:
-
只是为了确保您没有错过显而易见的事情:您确定您已经激活了 IIS 中的 ASP.NET(和正确的版本)吗?您是否将该文件夹设置为应用程序,或者至少是一个虚拟目录?
-
是的,我有,我将文件复制到的应用程序是一个经典的 ASP 应用程序,我确保在选项卡中启用了 ASP.NET 2.0。谢谢你的建议。
标签: asp.net iis-6 permissions frameworks asp.net-2.0