简体   繁体   中英

Why does URL Rewrite module makes CLR stop in IIS 8.5?

  • Windows server 2012 R2
  • IIS 8.5
  • Simple one-file index.html website
  • In the Application pool selected .NET CLR 4.0

In this step website works. Then I install the URL Rewrite module for IIS. Don't add any rules for URL Rewrite, but when I open web-site in browser, the application pool for this site stops.

The error message:

HTTP Error 503. The service is unavailable.

The log from

%SystemDrive%\Windows\System32\LogFiles\HTTPERR

#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2019-04-29 13:34:12
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2019-04-29 13:34:12 127.0.0.1 49200 127.0.0.1 80 HTTP/1.1 GET / 503 5 AppOffline test.com29 13:34:12 127.0.0.1 49200 127.0.0.1 80 HTTP/1.1 GET / 503 5 AppOffline test.com

This catalog has no log files:

%SystemDrive%\inetpub\logs\LogFiles

When one uninstall URL Rewrite module, the pool of website starts to work normally.

Why doest URL Rewrite module makes CLR stop?

UPDATE

Event Log message:

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

Then I added to applicationHost config bitness32

C:\Windows\System32\inetsrv\config\applicationHost

<add name="RewriteModule" image="%SystemRoot%\system32\inetsrv\rewrite.dll" preCondition="bitness32" />

With bitness32 it doesn't stop the pool but I get this error in the browser:

HTTP Error 500.0 - Internal Server Error
Module "RewriteModule" could not be found

In event log I found the same message. Ie The Module DLL C:\\Windows\\system32\\inetsrv\\rewrite.dll failed to load. The data is the error.

For me the solution that worked was to replace the "rewrite.dll". In 2 of our other server it was working fine and they were installed in 2017. So I just copied the "rewrite.dll" from that server and replace it on my new server.

For me the older version(v7.1.1952.0) of the dll works, but new version ( v7.1.1993.2351), which comes with the latest setup, doesn't work.

BTW you need to stop the IIS before you replace the dll and start again.

I've a similar issue. After installing visual c++ 2013 redistributable and visual c++ 2015 redistributable URL rewrite 2.1 runs.

Do you have any entry in the application event logs pointing you to the reason for the crash, You can set up a crash rule in debug diag as well to collect automated crash dump in debug diag and then analyze over there itself, it will give you more insight if the event log doesn't help you much. %SystemDrive%\\inetpub\\logs\\LogFiles will have no files and it is a expected as the site has already crashed and disabled and the request is not even reaching the site

I follow the solution from Alexander Borisov and it worked for me after install Visual C++ 2015 Redistributable. It can be downloaded from here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM