产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 将代码上传空间后,出现提示“未能加载文件或程序集“System.Web, Version=2.0.0.0“
janlee - 2010/2/26 17:46:00
以下是详细错误代码,哪位高人救我?:t(
------
未能初始化 AppDomain:/LM/W3SVC/5877/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 的帮助和支持
xiyou - 2010/2/27 10:22:00
网站目录没有写权限,导致操作文件时候出错
471900839 - 2010/3/22 16:34:00
要添加什么用户吗?
lenovopcom - 2013/10/8 17:59:19
我也遇到这个问题了
carasnikov - 2013/10/9 13:46:07
网站目录安全中设置network services 用户为写入权限
xiyou - 2013/10/9 16:16:48
这个应该是framework没有安装好,如果自己服务器,安装一下framework4.0试试,然后iis站点属性里面asp.net选择4.0
wszh141 - 2014/1/6 14:02:32
这个是为嘛啊
5891
1
查看完整版本: 将代码上传空间后,出现提示“未能加载文件或程序集“System.Web, Version=2.0.0.0“