asp.net mvc - MVC "Access is Denied" using IIS -
having serious trouble getting beyond "access denied" message:
error message 401.2: unauthorized: logon failed due server configuration. verify have permission view directory or page based on credentials supplied , authentication methods enabled on web server. contact web server's administrator additional assistance.
how got here
running under windows 7, professional. system using ad login system (name: system\login). created new mvc 3 application in vs2010 called xyz. made no changes code. set referenced files system.web.mvc , system.web.helpers copy local = true.
what attempted
- published xyz file system location "c:/websites/xyz".
- added "abc.xyz.com" hosts file ipa 127.0.0.1.
- created new site in iis manager called "xyz" , set physical path path app published (c:/websites/xyz).
- bound xyz abc.xyz.com:80.
- ensured application pool site runs .net 4.0, integrated.
- application pool identity set applicationpoolidentity.
- at physical location of published files, right-clicked folder , went properties->security , added iusr list of users, giving full control.
- mvc project has authentication mode set "none".
- authentication site has anonymous access enabled , else disabled.
- i have enabled directory browsing site.
after this, reset web site, refresh browser, , reset iis. still message when go abc.xyz.com. have absolutely no idea should check next.
what need
can me this? have performed several google searches combinations of "mvc localhost access denied" , forth, , implemented suggestions found.
fixed
ok. found answer...at least application. changed authentication windows anonymous. then, removed .net authorization rule denied anonymous access. these 2 things enabled access application without annoying iis login popup accompanies windows authorization.
one thing failed notice before changes made web site reflected in web.config file @ published location, , not source.
unfortunately, every time published reset authentication. real reason had trouble. lesson learned. chagrined, am.
one other thing failed clear using iis 7.5.
Comments
Post a Comment