问题描述
我有一个的web.config
文件,该文件是在我的IIS7运行当前的解决方案相当大。
I have a web.config
file which is quite large in my current solution running on IIS7.
它的工作完美的我开发的服务器上,但是我遇到了错误 0x80070032
的配置错误无法读取配置文件,因为它超过了最大文件大小
It's working perfect on my dev server however I encounter the error 0x80070032
"Config Error Cannot read configuration file because it exceeds the maximum file size"
我目前的解决方案采用了一个非常大的的web.config
文件。我的CMS的应用程序的体系结构需要大量的配置设置。
My current solution uses a very large web.config
file. The architecture of my CMS application requires a large number of configuration settings.
有没有一些方法来扩展此大小限制或者我可以分割的web.config
文件分解成更小的文件?
Is there some way to extend this size limit or can I split the web.config
file down into smaller files?
推荐答案
您是否尝试过加入此注册表项:
Have you tried adding this registry key:
HKLM \ SOFTWARE \微软\ InetStp \配置
然后设置该DWORD值: MaxWebConfigFileSizeInKB
Then set this DWORD value: MaxWebConfigFileSizeInKB
如果您的系统运行的是64位的Windows,但您的应用程序池在32位模式下运行,那么你可能需要设置的:
If your system is running 64 bit windows but your application pool is running in 32-bit mode then you may need to set this in:
HKLM \ SOFTWARE \ Wow6232Node \微软\ InetStp \配置
如果你的的web.config
文件是因为有大量的重写规则过大,那么你可以分离这些成他们自己的文件:
If your web.config
file is oversized because of a large number of rewrite rules then you could separate these into their own files:
存储在一个单独的文件 URL重写映射
这篇关于在IIS7 0x80070032超过网络配置大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!