SharePoint 2010 的自定义角色提供程序:
我已经为 SharePoint 2010 编写了自定义成员资格和角色提供程序。成员资格提供程序几个月来一直运行良好。我刚刚完成角色提供程序,将其添加到 GAC,在 Central Admin 中进行设置,并将其添加到 Web 配置等。
当我启动 SP 时,出现此错误: 无法加载文件或程序集“X”或其依赖项之一。系统找不到指定的文件。
除了将其添加到 GAC 之外,我还需要做什么?我哪里可能出错了?
I have written both custom Membership and Role providers for SharePoint 2010. The Membership provider has been working just fine for months. I just finished the Role provider, added it to the GAC, set it up in Central Admin, and added it to the web configs, etc.
When I fire up SP, I get this error:
Could not load file or assembly 'X' or one of its dependencies. The system cannot find the file specified.
What else do I need to do besides adding it to the GAC? Where could I have gone wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1) 转到项目属性。
2) 确保“目标框架”设置为“.NET Framework 3.5”。
3) 使用“Visual Studio x64 命令提示符”而不是常规的 VS 命令提示符将新程序集添加到 GAC。
1) Go to project properties.
2) Make sure "Target Framework" is set to ".NET Framework 3.5."
3) Add new assembly to the GAC using "Visual Studio x64 Command Prompt" instead of the regular VS command prompt.