Web config size limit exceeded under IIS7 0x80070032(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 配置大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:IIS7 0x80070032 下超出 Web 配置大小限制


- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 输入按键事件处理程序 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01