Click here to Skip to main content
15,937,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working first time with IIS. I made an application which have to create a new web site. All worked fine on the server until I installed Microsoft.Web.Administration class library. Server gave me this error:"The Role Manager feature has not been enabled." After I made these changes in web.config:
<add key="enableSimpleMembership" value="true" />...

<identity impersonate="true"/>


my code:
    ServerManager serverManager = new ServerManager();
Site mySite = serverManager.Sites.Add(websiteName, sitePath, 80);
mySite.ServerAutoStart = true;

Libray "Microsoft.Web.Administration" is in aplication on server. I tried to change Application Pool Identity with no luck. Now, when I try to create site, redirect on the login page. Please help me, if anyone now how to solve this problem. Thanks in advance!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900