在webconfig中添加serverRuntime标记会导致500.19错误 [英] Adding serverRuntime tag in webconfig cause 500.19 error
问题描述
伙计们花了将近一天的时间后,我认为是时候问社区了. 我刚刚从另一台笔记本电脑上的TFS下载了asp.net项目,但无法运行.我已经缩小了问题的范围,这与我的webconfig设置有关,并且设置是
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
推荐答案
对于遇到此问题的任何人,这是我为解决此问题所做的工作 问题.
To anyone experiencing this issue, here is what I did to solve this issue.
- 以管理员身份打开命令提示符.
-
导航到您的Web应用.
- Open command prompt as administrator.
Navigate to your web app.
复制/粘贴:
%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/serverRuntime
- 按Enter.
如果成功,您将看到类似以下内容:
If successful you'll see something like this:
Unlocked section
system.webServer/serverRuntime" at configuration path "MACHINE/WEBROOT/APPHOST
这篇关于在webconfig中添加serverRuntime标记会导致500.19错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!