Issue with ASP.NET MVC 4.8 Application Deployment in IIS

Hello Keycloak Community,

I’m currently facing an issue with an ASP.NET MVC 4.8 application that works seamlessly in Visual Studio but encounters problems once deployed to IIS. After logging in, the browser keeps refreshing without providing any error messages, making it hard to pinpoint the problem.

Details:

  • Environment: ASP.NET MVC 4.8

  • Development: Works fine in Visual Studio

  • Deployment: Runs into issues when hosted in IIS

Configuration:

  • I’ve confirmed that IIS is properly configured for both HTTPS and HTTP.
  • All components—host, application, Keycloak, and IIS—are set to the same URL.

Troubleshooting Steps Taken:

  • Verified IIS configuration settings.
  • Checked application logs, but no relevant errors were logged during refresh attempts.
  • Reviewed network traffic, but I couldn’t ascertain why the refresh occurs.

If anyone has encountered a similar issue or has suggestions on what to check next, I would appreciate your input. Your insights could help resolve this challenge!

Thank you in advance!