Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

SPVirtualServer

  Asked By: Landon Mcgee         Date: Sep 12, 2009      Category: Sharepoint      Views: 200
 

I have a problem and hope a solution for the same.

Kindly let me know if you have any solution for this problem, I have
been just trying to go about this for a long time, no luck so far…

If my user is not an administrator when I use the SPGlobalAdmin
object and call globObj.VirtualServers[0] then it will always ask
for a password implying that this is not allowed without certain
privledges. The only way around
this is to make the user an administrator on the computer that the
portal resides on. Is there any way to either get around this by
impersonation or get a handle to a SPSiteCollection object or a
virtual server without this
method?

Tagged:  

 

2 Answers Found

 
Answer #1       Answered By: Johathan Mcgowan          Answered On: Sep 12, 2009       

I had similar issue with other classes

Check this out
msdn.microsoft.com/.../h
tml/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp

This should give you some sample on how to impersonate the user

All Admin Sharepoint classes require being instantiate with a Sharepoint
administrator.

 
Answer #2       Answered By: Georgia Barr          Answered On: Sep 12, 2009       

Try making the user  a member of the local SPS_WPG (& STS_WPG) groups on
your portal server...

 
Didn't find what you were looking for? Find more on SPVirtualServer Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].