无法读取配置文件,因为它超过了最大文件大小 [英] Cannot Read Configuration File Because it Exceeds the Maximum File Size
问题描述
无法读取配置文件,因为它超出了最大文件大小。
Cannot read configuration file because it exceeds the maximum file size.
由于我的rewritemap.config文件大小超过250KB(Windows 2008,我收到了以上错误)带有IIS 7.5的R2 SP1服务器
I'm getting above error because my rewritemap.config file size is more than 250KB (Windows 2008 R2 SP1 server with IIS 7.5
推荐答案
如果可以访问注册表,并且确实需要大于250kb的文件,则可以更改值。
If you have access to registry and if you really need file greater than 250kb, you can change value in Registry Key.
对于x32系统:
创建密钥:
HKLM\Software\Microsoft\InetStp\Configuration\
添加DWORD值:
MaxWebConfigFileSizeInKB
对于x64系统:
创建密钥:
HKLM\Software\Wow6432Node\Microsoft\InetStp\Configuration\
添加DWORD值:
MaxWebConfigFileSizeInKB
请确保重新启动或重新启动应用程序池。 对相关问题的答案也可能会激发灵感。
Be sure to reboot or restart the application pool. This answer to a related question may also inspire.
注意:如果没有密钥,则可以创建它。 如何在regedit上创建密钥
Note: If there are not the key, you can just create it. how to create a key on regedit
其他替代方法是拆分.config文件。
http: //forums.asp.net/t/1961321.aspx?Split+web+config+rewrite+rules+in+separate+file
Other alternative is to split the .config files. http://forums.asp.net/t/1961321.aspx?Split+web+config+rewrite+rules+in+separate+file
这篇关于无法读取配置文件,因为它超过了最大文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!