我爲客戶端創建了ASP.NET應用程序,並且所有文件都位於D驅動器的文件夾中。ASP.NET 2.0文件在一個文件夾中工作,但不在另一個文件夾中
現在是時候開始生產了,所以我將所有文件和文件夾複製到同一驅動器上的現有經典ASP文件夾中。
當我瀏覽到應用程序時,它無法啓動。
我可以看到的唯一區別是開發站點不需要像生產站點那樣的HTTPS。
我也確保兩個文件夾上的所有權限相同。 我也確保GAC使用aspnet_regiis工具讀取權限。
我在調試知識的末尾,有人可以幫我解決問題。
以下是我從應用程序事件日誌中獲得的錯誤消息。
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.
感謝你的幫助,
史蒂夫
只是爲了確保你沒有錯過顯而易見的事情:你確定你已經激活了ASP.NET(以及正確的版本)IIS嗎?你是否將該文件夾設置爲應用程序,或者至少是一個虛擬目錄? – 2010-03-14 18:05:03
是的,我將應用程序複製到的是一個經典的ASP應用程序,並確保在該選項卡中啓用了ASP.NET 2.0。 謝謝您的建議。 – Steve 2010-03-14 19:34:14