无法使用非系统帐户用户调试 Sharepoint 应用程序?
我正在使用 WSPBuilder
开发 Sharepoint2007
站点,每当我尝试使用非系统帐户
之一的用户进行调试时,调试器都会进入断点并等待一步(F10),当我按 F10 时,在具有断点的行上按 F10
后,我在调试 output
窗口中收到以下异常
A first chance exception of type 'System.Threading.ThreadAbortException'
occurred in XXX.dll
An exception of type 'System.Threading.ThreadAbortException'occurred in XXX.dll
but was not handled in user code The thread '<No Name>' (0xfc4) has exited with
code 0 (0x0).
:我被重定向到 sharepoint 的页面,上面写着:
Go back to site
Error: Access Denied
Current User
You are currently signed in as: SHAREPOINT\ZZZ
Sign in as a different user
当我尝试使用同一用户运行而不是调试时,我没有这个问题。
此外,当我尝试使用系统帐户
(MOSS ADMIN
)进行调试时,我没有遇到此问题?
如何克服这个问题?
顺便说一句,我正在尝试调试作为网站上的一项功能安装的自定义 ASPX/CS 页面。
仅供参考,它仅适用于该项目,不适用于我拥有的所有项目,也适用于该项目中的所有页面,而不仅仅是一页。
I am using WSPBuilder
to develop Sharepoint2007
sites, whenever i try to debug using one of the users that are not System Account
, the debugger enters to the breakpoint and waits a step (F10), when i press F10, i get the following exception in the debug output
window after pressing F10
on the line having the breakpoint:
A first chance exception of type 'System.Threading.ThreadAbortException'
occurred in XXX.dll
An exception of type 'System.Threading.ThreadAbortException'occurred in XXX.dll
but was not handled in user code The thread '<No Name>' (0xfc4) has exited with
code 0 (0x0).
and i am redirected to a page of sharepoint saying:
Go back to site
Error: Access Denied
Current User
You are currently signed in as: SHAREPOINT\ZZZ
Sign in as a different user
When i try to RUN not to DEBUG with the same user, I don't have this problem.
Also when i try to debug using the System Account
(MOSS ADMIN
), I don't have this problem ?
How to overcome this problem ?
BTW, i am trying to debug a custom ASPX/CS page installed as a feature on the site.
FYI, it's only for this project not for all projects i have, also it's for all pages in this project not only one page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于那些有兴趣的人,我找到了解决方案:
我创建了一个新项目并将文件复制到其中(当然还有重新创建功能),现在它工作正常。
这意味着项目本身是问题而不是IDE,也许它的某些文件已损坏!
For those who are interested, I found the solution:
I created a new project and copied my files to it (of course with recreating features), now it works fine.
That means that the project itself is the problem not the IDE, perhaps some of its file are corrupted !
您可能想要尝试将用户 SharePoint\zzz 添加到 WSS_WPG 和 WSS_Admin 组,看看是否可以解决该问题。我假设您正在单个独立安装上进行调试,因此您也可以尝试创建 SharePoint\zzz 和管理员。
You might want to try and add the user SharePoint\zzz to the WSS_WPG and WSS_Admin groups to see if that gets you around the issue. I assume you are doing the debugging on a single, stand alone install so you could also try and make SharePoint\zzz and administrator.