How to fix 500 Internal Server Error

ziwi 21 Reputation points
2022-04-25T12:46:27.79+00:00

I'm migrating multiple websites from windows server 2012 to windows server 2022 using web deploy.

When I try to view the site in a web browser, some of them have problems, I view the site and get "500 Internal Server Error". How to fix this error?

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2022-04-26T03:02:08.923+00:00

    @ziwi

    First of all, you may need to check whether the necessary feature has been installed, such as Common HTTP Features, Application Development, Management Tools etc.

    Secondly, considering it is migrated from windows 2012, you could try to set application pool to classic mode and enable 32-bit applications in application pool advanced setting.


    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vito Procino 6 Reputation points
    2022-04-25T13:36:49.363+00:00

    500 internal server error is generic error.

    If you migrate site from - to, you check that target server has all IIS features of source IIS Server.

    You must check .net on target server, and you must re-create application pool of migrate site because identity pool could be wrong.

    0 comments No comments