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

后端 未结 4 1512
抹茶落季
抹茶落季 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条回答
  •  萌比男神i
    2020-12-29 07:32

    In Visual Studio 2017, asp.net core project, the authentication is setup at launchSettings.json

    {
      "iisSettings": {
        "windowsAuthentication": false,
        "anonymousAuthentication": true,
        "iisExpress": {
          "applicationUrl": "http://localhost:54491/",
          "sslPort": 0
        }
      },
      "profiles": {
        "IIS Express": {
          "commandName": "IISExpress",
          "launchBrowser": true,
          "launchUrl": "api/values",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        },
        "TestAspNetCoreProd": {
          "commandName": "Project",
          "launchBrowser": true,
          "launchUrl": "api/values",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          },
          "applicationUrl": "http://localhost:54492"
        }
      }
    }
    

提交回复
热议问题