Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My application have to create sites programmatically. Application worked just fine until code "ServerManager manager = new ServerManager()", here is making redirect to login page. I think the problem is that application do not have administration rights. who is familiar with IIS7, please help me.
Thanks in advance!
Posted

1 solution

An application running in IIS
runs with a so-called Application-Pool Identity.
This is the default.

Please read:
http://www.iis.net/learn/manage/configuring-security/application-pool-identities[^]

If your application pool is "DefaultAppPool"
you must assign rights to user "IIS AppPool\DefaultAppPool"

You can also assign a different identity e.g. LocalSystem
 
Share this answer
 
v3
Comments
ZurdoDev 4-Dec-14 9:31am    
+5
TheRealSteveJudge 4-Dec-14 9:45am    
Thank you!
TheRealSteveJudge 4-Dec-14 10:08am    
It still says "No votes"...
ZurdoDev 4-Dec-14 10:08am    
Probably cached.
TheRealSteveJudge 4-Dec-14 10:39am    
OK. Now the stars are shining...

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