问题描述
当我试图打开我的SharePoint扩展网站,我收到错误500的错误信息是:
我的的web.config
文件只是约260 KB,因为它有这么多的<的SafeControl>
项在里面。删除一些旧的条目,并获得下至186 KB的文件后,我的网站开始正确加载。
我的问题:
- 什么是web.config文件的最大尺寸是多少?
- 可以做什么,以避免今后发生这种问题?
它并不难codeD及其
定义 HKEY_LOCAL_MACHINE \ SOFTWARE \微软\ InetStp \配置\ MaxWebConfigFileSizeInKB
或在64位机器
<$p$p><$c$c>HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB在起征点在默认情况下,除非你配置 MaxWebConfigFileSizeInKB
似乎是250KB
记住,你总是可以分割你的web.config文件分成多个小文件来解决这个问题,
When I tried to open my SharePoint extended site, I received error 500. The error message was:
My web.config
file was just about 260 KB, because it had so many <SafeControl>
entries in it. After removing some of the old entries, and getting the file down to 186 KB, my site started to load correctly.
My question:
- What is the maximum size of web.config?
- What can be done to avoid such problems in the future?
Its not hard coded its defined in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB
or on 64 Bit machines
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB
The "cutoff point" by default, unless you configure the MaxWebConfigFileSizeInKB
appears to be 250Kb
Remember you can always split your web.config files into multiple little files to get around this issue,
这篇关于什么是Web.config文件的最大尺寸是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!