什么是Web.config文件的最大尺寸是多少? [英] What's the maximum size of Web.config?

查看:546
本文介绍了什么是Web.config文件的最大尺寸是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图打开我的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:

Cannot read configuration file because it exceeds the maximum file size

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文件的最大尺寸是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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