Cannot debug when logged in as a user other than the administrator
I have acustom sharepoint page.
on my machine I can debug the code normaly by attaching to the w3p process when I'm logged in as the administrator user.
when I log in with another user and try to debug I always get access denied page in the sharepoint a开发者_如何转开发nd the dubug exists.
is there a way to debug the code while logged in with another user
thanks
Currently, you are trying to attach to sharepoint's processes which run under some specific account, using a non-admin account. You simply don't have enough privileges to do that.
I'd suggest that you keep logged in as administrator and consider the two choices:
- run Internet Explorer through
runas
command under the desired user account:C:\Windows\System32\runas.exe /user:contoso\sampleuser /savecred "c:\program files\internet explorer\iexplore.exe"
- open Internet Explorer as administrator and use the SharePoint's "sign in as different user" feature.
精彩评论