未能加载文件或程序集“Microsoft.Web.WebPages.OAuth”或它的某一个依赖项。拒绝访问。

Vincent咖灰 2015-08-12 05:13:44
=== 预绑定状态信息 ===
日志: 用户 = DISCOSHA\d71481
日志: DisplayName = Microsoft.Web.WebPages.OAuth
(Partial)
警告: 为程序集提供了部分绑定信息:
警告: 程序集名称: Microsoft.Web.WebPages.OAuth | 域 ID: 2
警告: 当仅提供程序集显示名称的一部分时,将发生部分绑定。
警告: 这可能导致联编程序加载错误的程序集。
警告: 建议为程序集提供完全指定的文字标识,
警告: 并由简单名称、版本、区域性和公钥标记组成。
警告: 有关此问题的详细信息和常见解决方案,请参见白皮书 http://go.microsoft.com/fwlink/?LinkId=109270。
日志: Appbase = file:///d:/Projects/MvcApplication1/MvcApplication1/
日志: 初始 PrivatePath = d:\Projects\MvcApplication1\MvcApplication1\bin
调用程序集: (Unknown)。
===
日志: 此绑定从 default 加载上下文开始。
日志: 正在使用应用程序配置文件: d:\Projects\MvcApplication1\MvcApplication1\web.config
日志: 使用主机配置文件: C:\Users\d71481\Documents\IISExpress\config\aspnet.config
日志: 使用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的计算机配置文件。
日志: 此时没有为引用应用策略(私有、自定义、分部或基于位置的程序集绑定)。
日志: 尝试下载新的 URL file:///C:/Users/d71481/AppData/Local/Temp/Temporary ASP.NET Files/root/ac64b48a/a4846950/Microsoft.Web.WebPages.OAuth.DLL。
日志: 尝试下载新的 URL file:///C:/Users/d71481/AppData/Local/Temp/Temporary ASP.NET Files/root/ac64b48a/a4846950/Microsoft.Web.WebPages.OAuth/Microsoft.Web.WebPages.OAuth.DLL。
日志: 尝试下载新的 URL file:///d:/Projects/MvcApplication1/MvcApplication1/bin/Microsoft.Web.WebPages.OAuth.DLL。
错误: 检索要下载的下一个基本代码时发生错误(hr = 0x80070005)。

堆栈跟踪:

[FileLoadException: 未能加载文件或程序集“Microsoft.Web.WebPages.OAuth”或它的某一个依赖项。拒绝访问。]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: 未能加载文件或程序集“Microsoft.Web.WebPages.OAuth”或它的某一个依赖项。拒绝访问。]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +752
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +218
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +258
System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516

[HttpException (0x80004005): 未能加载文件或程序集“Microsoft.Web.WebPages.OAuth”或它的某一个依赖项。拒绝访问。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

...全文
318 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiao_changjin 2016-06-07
  • 打赏
  • 举报
回复
给C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files目录添加everyone权限即可
Justin-Liu 2015-08-13
  • 打赏
  • 举报
回复
拒绝访问 是权限不足吧

110,537

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧