Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Extend web site

  Asked By: Rusty    Date: Oct 30    Category: Sharepoint    Views: 822

I created website on IIS programatically,
How to extend the same site through code itself.



3 Answers Found

Answer #1    Answered By: Tori Oconnor     Answered On: Oct 30

Go to SharePoint Central Administration/Create Portal Site and select the new
IIS virtual server from the Virtual Server drop-down list.

Answer #2    Answered By: Kristan Benjamin     Answered On: Oct 30

But i need it to do
programattically i mean in c# code  itself, not in the

Answer #3    Answered By: Vivian Mcguire     Answered On: Oct 30

I've never done this programmatically. I looked at the
Microsoft.SharePoint.Administration class library, which seemed the most likely
place in the object model for a method to do this, but didn't find anything to
create a new virtual server.

Take a look at the STSADM EXTENDVS command. This looks like it could be what
you're looking for. If you want to use it programmatically you'd need to shell
out from your program to run this command.

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