简体   繁体   English

无法使用非系统帐户用户调试Sharepoint应用程序吗?

[英]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 AccountMOSS 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.

相关问题 确定使用Sharepoint API的SharePoint应用程序池帐户? - Determine the SharePoint Application Pool Account Using Sharepoint API? 获取非用户应用程序的 SharePoint 特定访问令牌 - Obtain SharePoint specific access token for a non-user application 在 flex 应用程序中使用 sharepoint 用户凭据? - using sharepoint user credentials in a flex application? 若要与Visual Studio中的SharePoint项目进行交互,您的系统用户帐户必须具有管理员权限 - To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges Sharepoint / Skydrive Pro API无法将文件夹添加到用户的SkyDrive Pro帐户 - Sharepoint/Skydrive Pro API cannot add a folder to user's skydrive pro account 无法为管理员帐户禁用SharePoint Designer - SharePoint Designer cannot be disable for Administrator Account 找不到用户配置文件服务应用程序,但AD中的用户仍然反映在SharePoint网站中,而不是用户相关属性 - Cannot find User Profile Service Application, But still users from AD are reflecting in SharePoint site but not user related properties 使用服务帐户访问 SharePoint 文件夹 - Access SharePoint Folder using Service account 使用System.DirectoryServices.AccountManagement创建的用户无法访问Sharepoint网站 - User created using using System.DirectoryServices.AccountManagement unable to access Sharepoint site 如何在SharePoint中为系统帐户添加电子邮件地址 - How to add E-Mail address for system account in SharePoint
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM