我在IIS 8.5上部署了一个MVC4应用程序,对文件夹和临时文件夹具有完全权限,我有一个名为business.dll
的DLL,可以访问另一台服务器上的WCF服务。当我有表单身份验证时,每件事都可以正常工作,但是当我进行Windows身份验证时,它会让我拒绝访问business.dll
。
我试图:
在临时文件夹中排除mcafee服务;
以所有权限运行应用程序池和网站;
更改临时文件夹。
但我没有成功,下面是堆栈跟踪:
堆栈追踪:
[FileLoadException:无法加载文件或程序集' BuisnessModel, Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其中一个 依赖。访问被拒绝。] RoyalFleet.MvcApplication..ctor() +0 ASP.global_asax..ctor()在c:\ Users \ rfadmin \ desktop \ temp \ test \ 97712bb4 \ cadef3a5 \ App_global.asax.qpfh6khy.0.cs:0
[TargetInvocationException:目标抛出了异常 调用。] System.RuntimeTypeHandle.CreateInstance(RuntimeType type,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached, RuntimeMethodHandleInternal&安培; ctor,布尔& bNeedSecurityCheck)+0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)+113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark) +232 System.Activator.CreateInstance(Type type,Boolean nonPublic)+83 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark& stackMark)+1138
System.Activator.CreateInstance(Type type,BindingFlags bindingAttr, Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)+124 System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args, 文化信息文化)+18
System.Web.HttpRuntime.CreateNonPublicInstance(Type type,Object [] args)+60
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr的 appContext,HttpContext context)+260
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr的 appContext)+296[HttpException(0x80004005):目标抛出了异常 一个调用。] System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+9931880 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest) wr,HttpContext context)+254
有什么帮助吗?