500 error after starting docker container instance

James Baron 0 Reputation points
2023-10-16T18:29:50.7866667+00:00

I'm getting a 500 error after starting a Docker container. I can see that the website is running from the command prompt into the running Docker using CMD.

C:\inetpub\wwwroot>\Windows\System32\inetsrv\appcmd.exe list site

SITE "Default Web Site" (id:1,bindings:http/*:80:,state:Started)

I added to my Web.config

<httpErrors errorMode="Detailed" />

If I stop the website, the 500 error goes away and the connection just hangs endlessly.

I can't load static resources either. So like http://myip/someimage.png does not load in my browser. Just a 500 error.

Anyone know how I can figure out what the error is?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
709 questions
Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2023-10-18T03:20:45.76+00:00

    @James Baron

    First, please make sure that you have installed Failed Request Tracing, and make sure that Tracing is enabled in the Internet Information Services->World Wide Web Services->Health and Diagnostics.

    If you still can't succeed, please run Process Monitor to see if IIS has the appropriate permissions to write the FRT logs.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.