ASP.NET-4 IIS7.5 web.config serverRuntime

Whenever I add this line to my web.config in the system.webServer section:

<serverRuntime />

Without our features, IIS 7.5 simply serves as a blank page instead of a website. I created a new empty web application using IIS and added a line to web.config; empty page.

What am I doing wrong?

+3
source share
2 answers

I had this exact problem and it was solved by unlocking the serverRuntimehost application configuration section . Command to run on the console:

%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime
+17
source

So, are you actually adding this to your web configuration?

<location path="Default Web Site">
   <system.webServer>
      <serverRuntime enabled="true"
         frequentHitThreshold="1"
         frequentHitTimePeriod="00:00:20" />
   </system.webServer>
</location>

There are several important things to keep in mind ...

  • IIS7 , .
  • enabled = "true", serverRuntime

MSDN

http://msdn.microsoft.com/en-us/library/aa347568%28VS.90%29.aspx

+6

Source: https://habr.com/ru/post/1762054/


All Articles