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:

  1. commenting out code
  2. setting site in iis manager (still same problem)
  3. http://www.iis.net/configreference/system.webserver/security/authentication/windowsauthentication
  4. i disabled anonymous authentication enabled windows authentication. went providers , put ntml on top.
  5. i did in web config file <system.web><authentication mode="windows" /> <authorization> <deny users="?" /> </authorization> </system.web>
  6. i tried adding site internet explorer local sites.

any ideas this?

http://support.microsoft.com/kb/896861 fixed method 2 did trick.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -