[英]Cannot debug Sharepoint application using non system account user?
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: 我正在使用WSPBuilder
开发Sharepoint2007
网站,每当我尝试使用不是System Account
的用户之一进行调试时,调试器就会进入断点并等待步骤(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).
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 ? 另外,当我尝试使用System Account
( MOSS ADMIN
)进行调试时,我没有这个问题吗?
How to overcome this problem ? 如何克服这个问题?
BTW, i am trying to debug a custom ASPX/CS page installed as a feature on the site. 顺便说一句,我正在尝试调试作为功能安装在站点上的自定义ASPX / CS页面。
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. 仅供参考,它仅适用于该项目,不适用于我拥有的所有项目,也适用于该项目中的所有页面,而不仅仅是一页。
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 ! 这意味着项目本身就是问题,而不是IDE,也许它的某些文件已损坏!
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. 您可能想要尝试将用户SharePoint \\ zzz添加到WSS_WPG和WSS_Admin组,以查看是否可以解决此问题。 I assume you are doing the debugging on a single, stand alone install so you could also try and make SharePoint\\zzz and administrator. 我假设您是在单个独立安装上进行调试,因此也可以尝试使SharePoint \\ zzz和管理员成为一名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.