SharePoint 无法加载文件或程序集“Microsoft.SharePoint.ApplicationPages”访问被拒绝”
当我访问 SharePoint 2007 中的任何管理功能(例如“网站设置”或“创建页面”)时,出现以下错误。当我重新启动服务器时,错误暂时修复,但在相对较短的时间内再次出现。
我检查了与这篇文章相关的其他问题,但没有一个有答案。我认为它与安全相关,但为什么在服务器重新启动时它会暂时修复?
更新:我刚刚重新启动 IIS,问题又暂时解决了...太令人困惑了。伙计,我感觉这个问题很快就会获得tumbleweed
徽章。
无法加载文件或程序集 Microsoft.SharePoint.ApplicationPages, 版本=12.0.0.0,文化=中立, PublicKeyToken=71e9bce111e9429c' 或 它的依赖项之一。访问权限是 否认。在 System.Reflection.Assembly._nLoad(AssemblyName 文件名、字符串代码库、证据 装配安全、装配 locationHint、StackCrawlMark& 堆栈标记、布尔值 throwOnFileNotFound,布尔值 用于内省)在 System.Reflection.Assembly.InternalLoad(AssemblyName 装配参考、证据 assemblySecurity、StackCrawlMark& stackMark,用于自省的布尔值) 在 System.Reflection.Assembly.InternalLoad(字符串 汇编字符串,证据 assemblySecurity、StackCrawlMark& stackMark,用于自省的布尔值) 在 System.Reflection.Assembly.Load(字符串 汇编字符串)在 System.Web.Configuration.CompilationSection.LoadAssembly(字符串 程序集名称,布尔值 throwOnFail) at System.Web.UI.TemplateParser.AddAssemblyDependency(字符串 程序集名称,布尔值 addDependentAssemblies)位于 System.Web.UI.TemplateParser.ProcessDirective(字符串 指令名称,IDictionary 指令) 在 System.Web.UI.TemplateParser.ParseStringInternal(字符串 文本,编码文件编码)
I get the following error when I access any admin feature in SharePoint 2007 such as "Site Settings" or "Create Page." When I restart the server, the error is temporarily fixed but it comes back again in relatively short time.
I've checked other questions related to this post and none of them have the answer. I assume it's security related but then why is it fixed temporarily when the server is restarted?
Update: I just restarted IIS and the issue is temporarily resolved again... so confusing. Man, I can feel this question getting the tumbleweed
badge soon.
Could not load file or assembly
Microsoft.SharePoint.ApplicationPages,
Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. Access is
denied. at
System.Reflection.Assembly._nLoad(AssemblyName
fileName, String codeBase, Evidence
assemblySecurity, Assembly
locationHint, StackCrawlMark&
stackMark, Boolean
throwOnFileNotFound, Boolean
forIntrospection) at
System.Reflection.Assembly.InternalLoad(AssemblyName
assemblyRef, Evidence
assemblySecurity, StackCrawlMark&
stackMark, Boolean forIntrospection)
at
System.Reflection.Assembly.InternalLoad(String
assemblyString, Evidence
assemblySecurity, StackCrawlMark&
stackMark, Boolean forIntrospection)
at
System.Reflection.Assembly.Load(String
assemblyString) at
System.Web.Configuration.CompilationSection.LoadAssembly(String
assemblyName, Boolean throwOnFail) at
System.Web.UI.TemplateParser.AddAssemblyDependency(String
assemblyName, Boolean
addDependentAssemblies) at
System.Web.UI.TemplateParser.ProcessDirective(String
directiveName, IDictionary directive)
at
System.Web.UI.TemplateParser.ParseStringInternal(String
text, Encoding fileEncoding)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近联系了一个有同样问题的人。他向 Microsoft 立案,他们建议将 Microsoft.SharePoint.ApplicationPages.dll 的副本放入 GAC 中。这可能不是最好的解决方案,但它可以解决问题。
I got in contact recently with someone that had the same problem. He opened a case with Microsoft and they suggested to put a copy of Microsoft.SharePoint.ApplicationPages.dll in the GAC. It may not be the best solution, but it fixes the issues.