IIS7 0x80070032 下超出 Web 配置大小限制 [英] Web config size limit exceeded under IIS7 0x80070032

查看:19
本文介绍了IIS7 0x80070032 下超出 Web 配置大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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:

HKLMSOFTWAREMicrosoftInetStpConfiguration

然后设置这个 DWORD 值:MaxWebConfigFileSizeInKB

Then set this DWORD value: MaxWebConfigFileSizeInKB

如果您的系统运行的是 64 位窗口,但您的应用程序池运行的是 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:

HKLMSOFTWAREWow6232NodeMicrosoftInetStpConfiguration

如果您的 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 下超出 Web 配置大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆