Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Extending a virtual server Using sharepoint API

  Asked By: Tara    Date: Jun 30    Category: Sharepoint    Views: 829

While extending a virtual server, using globalAdmin.ExtendVirtualServer() method which is under Microsoft.Sharepoint.Administration, virtual server gets extend successfully but while browsing it gives "Unable to get global configuration data." - error.

Below is the exact piece of code i am using through a console application to extend a Virtual server:

SPVirtualServer spVServer = globalAdmin.ExtendVirtualServer(uri, false, "StsAppPool1", false, null, null,true);

SPContentDatabaseCollection dbCollection = spVServer.ContentDatabases;
dbCollection.Add("localhost", "SPSTest", null, null, 0, 0, 0);



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Extending a virtual server Using sharepoint API Or get search suggestion and latest updates.