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 asp.net-mvc-4 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:
C#
<pre>
     <appSettings>
<add key="enableSimpleMembership" value="true" />...

 <system.web>
<identity impersonate="true"/>

...

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


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!
Posted

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