Azure asp.net c# web publish with authentication will not connect to localhost (refused)

Arpitha Aradhya 21 Reputation points
2020-01-29T10:07:00.457+00:00

Dear Expert,

I'm new to Azure Web application development and used the guide https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-dotnet-sqldatabase to create a new web application.

I have used Authentication with work or school account to login to the web page. When I publish the application, I successfully login using the Microsoft account.2552-error2.jpg

To check if localhost is working, I press Ctrl +F5 the localhost works but when I click publish it does not work with the Azure URL after authentication. What can be the reason? How can I fix it? I also have validated connection in Publish settings.Only this error occurs when I add authentication step 2561-error.jpg

Without Authentication, after publish with azure URL localhost opens,

2472-error3.jpg

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,819 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP
    2020-01-29T13:47:58.143+00:00

    Also reach out to subject matter experts in dedicated forums over here.

    https://forums.asp.net/1247.aspx/1?Azure+and+ASP+NET

    https://forums.asp.net/37.aspx/1?C+

    0 comments No comments