Answer the question
In order to leave comments, you need to log in
How to create a site on IIS through another application?
I am new to IIS and am currently doing a project to build websites. I added the "Microsoft.Web.Administration" library and made sure that it was copied on the server as well. Added to web.config:
<appSettings>
<add key="enableSimpleMembership" value="true" />...
<system.web>
<identity impersonate="true"/>
<roleManager enabled="true" />...
ServerManager serverManager = new ServerManager();
Site mySite = serverManager.Sites.Add(websiteName, sitePath, 80);
mySite.ServerAutoStart = true;
serverManager.CommitChanges();
Answer the question
In order to leave comments, you need to log in
you already got everyone here with your application that creates sites. honestly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question