Windows Authentication not working in IIS Express, debugging with Visual studio 2013, Windows 8

后端 未结 4 1519
抹茶落季
抹茶落季 2020-12-29 07:05

I just upgraded my application from Visual studio 2012 to Visual studio 2013. My windows authentication is not working any more. It is giving me below error.



        
4条回答
  •  误落风尘
    2020-12-29 07:30

    It looks like you solved your own question! Good on you. In addition to this post helping me I found the following to be SUPER helpful in configuring my IIS Express.

    IIS Express Windows Authentication

    Edit: I've copied the important information from the associated link in case it dies. This is completely from user vikomall

    option-1:

    edit \My Documents\IISExpress\config\applicationhost.config file and enable windowsAuthentication, i.e:

    
    ...
      
    ...
        
          
        
    ...
      
    ...
    
    

    option-2:

    Unlock windowsAuthentication section in \My Documents\IISExpress\config\applicationhost.config as follows

    
    

    Alter override settings for the required authentication types to 'Allow'

    
        ...
        
            ...
            
                
    ...

    Add following in the application's web.config

    
    
        
          
            
              
            
          
        
    
    

    Below link may help: http://learn.iis.net/page.aspx/376/delegating-configuration-to-webconfig-files/

    After installing VS 2010 SP1 applying option 1 + 2 may be required to get windows authentication working. In addition, you may need to set anonymous authentication to false in IIS Express applicationhost.config:

    
    
                
    

提交回复
热议问题