I’m trying to use CreateSite() from within the webservices area and am getting the error:
“Unable to connect to the remote server”
I’m using the following code. I can access other Sharepoint web services area. I’m running version 3.x. I know this is accessing the Admin.asmx web service and would need special permissions. The credentials I’m using has full admin rights to my sharepoint server.
I’m looking for any information that would tell me exactly what permissions need to be set up in order for me to use this service and method. I can’t seem to find much of anything on what permission need to be set in this area.
Administration.Admin Admin = new Administration.Admin();
Admin.Credentials = new NetworkCredential(@”MyDomain\MyUser”, “pwd”, “Site”);
Admin.Url = AdminHost + AdminServiceName;
string Result = Admin.CreateSite(“http://Mysite.MyDomain.com/CRM/MySite/”, “Happy”, “Happy Description”, 1033, “STS#1″,@”VirtualMachine1\Administrator”, “Administrator”, “MyEmail@MyEmail.com”, “”, “”);