问题描述
嗨
我在解决方案WCF和SharePoint解决方案中都有服务模块.
I have service module in solution WCF and sharepoint solutions.
我的应用程序运行正常,突然页面之一显示错误
My application was working fine , suddenly one of the page showing error
没有提供所需的模拟级别,或者提供的模拟级别无效. (来自HRESULT的异常:0x80070542)仅限一页上的所有用户
"Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)" for all user on one page only
我检查了所有DLL版本都没问题.
I have checked all DLL version those are fine.
事件日志显示:
&ConfigurationErrorsException
无法加载文件或程序集"Microsoft.IdentityModel.Extensions"或其依赖项之一.没有提供所需的模拟级别,或者提供的
模拟级别无效. (来自HRESULT的异常:0x80070542),位于System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean
star.ive)位于System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory(),位于System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
在System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal上的System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
上System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)上的(VirtualDirectory vdir,布尔值ignoreErrors)
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,布尔值noBuild,布尔值allowCrossApp,布尔值allowBuildInPrecompile,布尔值
在System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext上下文,VirtualPath virtualPath,布尔值
,
在
处的noBuild,布尔值allowCrossApp,布尔值allowBuildInPrecompile,布尔值throwIfNotFound,布尔值sureIsUpToDate)
的System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath虚拟路径,HttpContext上下文,布尔allowCrossApp,布尔throwIfNotFound)
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext,....
ConfigurationErrorsException
Could not load file or assembly 'Microsoft.IdentityModel.Extensions' or one of its dependencies. Either a required impersonation level was not provided, or the provided
impersonation level is invalid. (Exception from HRESULT: 0x80070542) at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean
starDirective) at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal
(VirtualDirectory vdir, Boolean ignoreErrors) at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean
throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean
noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at
System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, ....
这是DLL问题吗?使用IIS? IIS用户无法访问它?
Is this DLL issue with IIS? IIS user unable to access it?
推荐答案
这篇关于没有提供所需的模拟级别,或者提供的模拟级别无效. (来自HRESULT的异常:0x80070542)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!