Azure-Samples / active-directory-dotnet-webapp-openidconnect

A .NET MVC web application that uses OpenID Connect to sign-in users from a single Azure Active Directory tenant.
159 stars 109 forks source link

Hosting in Local IIS throws exception #43

Closed pkmahapatra closed 6 years ago

pkmahapatra commented 6 years ago

I have recreated the application and it works fine when run under IIS Express. But when it is hosted in Local IIS it throws the following exception - image

Please help

pkmahapatra commented 6 years ago

After doing some homeworks and googling I found that the reason for the above exception is due to the following -

The web server cannot communicate with the public URL/IP address because of strong Firewall rules or the public IP and the internal IP of the web server communicate via a proxy IP

Now I am not sure how to overcome this problem .....

jmprieur commented 6 years ago

you probably need to add rules to your firewall to let the traffic through IIS. Closing this issue as this is not an issue with the sample.