Answer the question
In order to leave comments, you need to log in
How to configure UrlRewrite in Web.config for Windows Server 2012 R2?
There is a server. It runs on Windows Server 2012 R2 (license).
There is a site that was made on another computer and subsequently transferred to the server.
After the transfer, accessing the site through the domain invariably results in a 500 error (internal server error).
After analysis, a very strange reason was found - the server dies from the rewrite tag inside the system.webServer tag in the Web.config file. Moreover, the version of the framework is 4.6.1
. If you remove this tag from there, everything works perfectly.
But CNC is very important for the site, so there is no way to refuse routing.
What to do?
Answer the question
In order to leave comments, you need to log in
Is the UrlRewrite component installed for IIS? If in debug mode you cannot reach at least ApplicationStart - as a rule, the error occurs when the web server cannot understand what kind of garbage is written in web.config. Personally, I installed through the Web Platform Installer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question