visual studio 2012 - Can't login on intranet site keeps on asking for credentials ASP IIS MVC4 -
problem description: basicly had iis express in visual studio 2012 set , worked. mvc 4 intranet application uses windows authentication. able login in intranet site i'm developing using username , password. when executing after entering code code following:
runspace runspace = runspacefactory.createrunspace(); runspace.open(); pipeline pipeline = runspace.createpipeline(); command getsnapin = new command("add-pssnapin webadministration"); command importsnapin = new command("import-module webadministration"); command getprocess = new command("new-webapppool -name test"); pipeline.commands.add(getsnapin); pipeline.commands.add(importsnapin); pipeline.commands.add(getprocess); pipeline.invoke(); runspace.close();
it kept on asking credentials. cannot see why code keep on triggering credentials. things tried already:
- commenting out code
- setting site in iis manager (still same problem)
- http://www.iis.net/configreference/system.webserver/security/authentication/windowsauthentication
- i disabled anonymous authentication enabled windows authentication. went providers , put ntml on top.
- i did in web config file
<system.web><authentication mode="windows" /> <authorization> <deny users="?" /> </authorization> </system.web>
- i tried adding site internet explorer local sites.
any ideas this?
http://support.microsoft.com/kb/896861 fixed method 2 did trick.
Comments
Post a Comment