所屬分類:.NET技術 .NET Framework
----------------------------------------------------------------------
打開網頁是這樣的:
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.
在應用程序日志里有2個,一個紅錯誤的是:
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 拒絕訪問。
有關更多信息,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支持中心。
一個黃警告的是:
Failed to initialize the AppDomain:/LM/W3SVC/547852252/Root
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 拒絕訪問。
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
有關更多信息,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支持
怎么辦,怎么才可以運行這個網頁(這個網頁在我有VS2005的機器上運行調試是都可以的!)
----------------------------------------------------------------------
看看IIS是不是關了,如果開著就重新配置一下虛擬目錄
--------------------------------------------------------
怎么看有沒有關,怎么配置虛擬目錄,我以前沒弄過!
--------------------------------------------------------
服務器是2003,IIS是V6.0
--------------------------------------------------------
我也遇到這樣的問題,那位高人指點一下啊!
--------------------------------------------------------
up
--------------------------------------------------------
搞定 虛擬目錄指向的文件夾要加User組
--------------------------------------------------------
我是菜鳥,不知道我的回答是否多余!?
如果裝過IIS,默認應該是打開的,除非改過服務。
去控制面板-〉性能和維護-〉管理工具-〉Internet信息服務
就可以看到了,還可以設置虛擬目錄
解決辦法:在該web sites的virtual directory下,將Permissions設置一下,里面應包含
ASP.NET
IWAM_MachineName
Local_Service
Network_Service
System
而且權限要設置為write & read.