当前位置:编程学习 > C#/ASP.NET >>

各位大侠,这个错误是怎么解决啊,请指点

未能初始化 AppDomain:/LM/W3SVC/1652376438/Root

Exception: System.IO.FileLoadException

Message: 未能加载文件或程序集“System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个

依赖项。拒绝访问。

StackTrace:    在 System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, 

Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   在 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly 

locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   在 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& 

stackMark, Boolean forIntrospection)
   在 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, 

Boolean forIntrospection)
   在 System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, 

Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& 

stackMark)
   在 System.Activator.CreateInstance(String assemblyName, String typeName)
   在 System.AppDomain.CreateInstance(String assemblyName, String typeName)
   在 System.AppDomain.CreateInstance(String assemblyName, String typeName)
   在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, 

HostingEnvironmentParameters hostingParameters)
   在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, 

IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。 --------------------编程问答-------------------- 你的framework版本是多少 --------------------编程问答-------------------- Exception: System.IO.FileLoadException

是有八九是读写权限的问题,给个最高权限试试。 --------------------编程问答-------------------- 恩,忘了,也很有可能是需要读取的一个文件不存在了。 --------------------编程问答-------------------- --------------------编程问答-------------------- 加一个everyone权限,给成完全控制试试。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,