问题描述
“/”应用程序中的服务器错误。未能加载文件或程序集“App_global.asax”或它的某一个依赖项。拒绝访问。说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.IO.FileLoadException:未能加载文件或程序集“App_global.asax”或它的某一个依赖项。拒绝访问。源错误:执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。程序集加载跟踪:下列信息有助于确定程序集“App_global.asax”无法加载的原因。警告:程序集绑定日志记录被关闭。要启用程序集绑定失败日志记录,请将注册表值[HKLMSoftwareMicrosoftFusion!EnableLog](DWORD)设置为1。注意:会有一些与程序集绑定失败日志记录关联的性能损失。要关闭此功能,请移除注册表值[HKLMSoftwareMicrosoftFusion!EnableLog]。堆栈跟踪:[FileLoadException:未能加载文件或程序集“App_global.asax”或它的某一个依赖项。拒绝访问。]System.Reflection.Assembly._nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,AssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection)+0System.Reflection.Assembly.nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,AssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection)+43System.Reflection.Assembly.InternalLoad(AssemblyNameassemblyRef,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection)+127System.Reflection.Assembly.InternalLoad(StringassemblyString,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection)+142System.Reflection.Assembly.Load(StringassemblyString)+28System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+46[ConfigurationErrorsException:未能加载文件或程序集“App_global.asax”或它的某一个依赖项。拒绝访问。]System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+613System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+203System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfoai)+105System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSectioncompConfig)+178System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectoryvdir)+163System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectoryvdir,BooleanignoreErrors)+53System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectoryvdir,VirtualPathvirtualDir,BooleanignoreErrors)+175System.Web.Compilation.BuildManager.CompileWebFile(VirtualPathvirtualPath)+83System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPathvirtualPath,BooleannoBuild,BooleanallowCrossApp,BooleanallowBuildInPrecompile)+261System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContextcontext,VirtualPathvirtualPath,BooleannoBuild,BooleanallowCrossApp,BooleanallowBuildInPrecompile)+101System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPathvirtualPath,HttpContextcontext,BooleanallowCrossApp,BooleannoAssert)+126System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPathvirtualPath,TyperequiredBaseType,HttpContextcontext,BooleanallowCrossApp,BooleannoAssert)+62System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContextcontext,StringrequestType,VirtualPathvirtualPath,StringphysicalPath)+33System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContextcontext,StringrequestType,VirtualPathvirtualPath,StringphysicalPath)+40System.Web.HttpApplication.MapHttpHandler(HttpContextcontext,StringrequestType,VirtualPathpath,StringpathTranslated,BooleanuseAppConfig)+160System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+93System.Web.HttpApplication.ExecuteStep(IExecutionStepstep,Boolean&completedSynchronously)+155版本信息:Microsoft.NETFramework版本:2.0.50727.3053;ASP.NET版本:2.0.50727.3053求解!
解决方案
解决方案二:
App_global.asax看下有没有这个文件有的话,看下他的引用文件有没有
解决方案三:
我试试,先谢谢!
解决方案四:
这是客户让别人做的。前一段还好着呢今天才出现问题
解决方案五:
问题很鲜明啊!
解决方案六:
文件找不到...
解决方案七:
能详细点么?
解决方案八:
引用6楼aming5188的回复:
能详细点么?
就是这个文件不存在了,又或者DLL没有正常没编译你可以重启下IIS或者回收下进程PS:突然出现的话,80%的概率是在服务器配置上
解决方案九:
bin下有App_global.asax.dll,但是根目录没有App_global.asax,现在不知道问题出哪里了!