IIS 7.5. Problem with rewrite.dll

Михаил Андросов 396 Reputation points
2022-12-06T13:57:13.05+00:00

After upgrading Windows Server 2008 to 2008 R2, there was a problem with IIS.
When trying to open a previously working site, an error is issued:
Service Unavailable
HTTP Error 503: The service is unavailable
At the same time, an error is logged in the event log:
Source: IIS-W3SVC-WP
ID: 2280
The Module DLL C:\Windows\system32\inetsrv\rewrite.dll failed to load. The data is the error.
I deleted the module rewite.dll , downloaded this extension from the Microsoft website (https://www.iis.net/downloads/microsoft/url-rewrite).
and installed it.
But the error did not disappear.
I ask for help.

Windows development | Internet Information Services
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2022-12-06T15:50:13.583+00:00

    Is your app pool set to 32 bit?

    267700-image.png

    Did you install the 32 or 64 bit version?

    267785-image.png

    Is there additional information in the HTTP error logs? C:\Windows\System32\LogFiles\HTTPERR

    1 person found this answer helpful.
    0 comments No comments

  2. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2022-12-07T03:18:59.133+00:00

    @Михаил Андросов

    It is a classic problem occurred when upgrade from Windows Server 2008 to Windows Server 2008R2. You can try to click the repair in program feature and restart the application pool would solve it.

    268043-1.png


    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.

    1 person found this answer helpful.
    0 comments No comments

  3. Michael Taylor 60,331 Reputation points
    2022-12-06T15:59:03.053+00:00

    The Module DLL C:\Windows\system32\inetsrv\rewrite.dll failed to load. The data is the error.

    Go to the Data portion of the event log entry. It tells you what went wrong. Provide us that information.

    Note that Server 2008 R2 went out of support almost 3 years ago. Therefore any issues are not really supported anymore and you cannot just download the latest version of binaries and expect them to work as they don't support the older OSes. You may just need to upgrade your Server instance to a supported OS first.

    0 comments No comments

  4. Михаил Андросов 396 Reputation points
    2022-12-07T06:13:52.827+00:00

    This is help me:
    regsvr32.exe rewrite.dll

    0 comments No comments

  5. Limitless Technology 44,766 Reputation points
    2022-12-07T11:36:07.247+00:00

    Hi. Thank you for your question and reaching out.

    Depending on the type of content contained in the damaged response, this corruption may result in a number of problems for web applications. For instance, HTML pages may exhibit unexpected, random digits if HTML information is corrupted. Or, if the web application becomes unusable due to the corruption of JavaScript content.

    For more information/reference, please see https://support.microsoft.com/en-us/topic/9a94f4eb-d2a3-0ca1-7518-ce1b348d9f0f

    -------------------------------------------------------------------------------------------------------------------------------

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

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.