Adding serverRuntime tag in webconfig cause 500.19 error

拜拜、爱过 提交于 2019-12-19 09:47:08

问题


Hi Guys after spending nearly one day i thought it is time to ask the community. I have just downloaded asp.net project from TFS on my another laptop and couldn't get it to run. I have narrowed down the issue and it is something to do with my webconfig setting and setting is

<serverRuntime uploadReadAheadSize="128000000" />

If I comment this setting error goes away but I am just wondering why I have to comment this out when it is working on my other laptop for same project.

Error i get upon adding the above mentioned tag is following


回答1:


To anyone experiencing this issue, here is what I did to solve this issue.

  • Open command prompt as administrator.
  • Navigate to your web app.

  • Copy/paste:

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

  • Press enter.

If successful you'll see something like this:

Unlocked section
   system.webServer/serverRuntime" at configuration path "MACHINE/WEBROOT/APPHOST


来源:https://stackoverflow.com/questions/31394838/adding-serverruntime-tag-in-webconfig-cause-500-19-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!