Web配置文件大小限制Azure VM中的IIS 8.5 [英] Web config file size limitation IIS 8.5 in Azure VM

查看:87
本文介绍了Web配置文件大小限制Azure VM中的IIS 8.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的网站中,我们需要将旧站点中的2500 Url重写添加到新站点,当我们这样做时,我遇到了一个问题.配置文件的大小,我们所有的重定向文件都在360Kb左右,我已经尝试了以下几种解决方案: 社区博客,但没有一个在起作用.

注意:我们的网站在Azure VM中运行

1)拆分重写为单独的文件

     即使我们将重定向移动到单独的.config文件中,新文件的大小约为335kb,因此也会发生相同的错误.我们可以省略此选项

2)添加注册表项

   我已添加MaxWebConfigFileSizeInKB 关键\ SOFTWARE \ Microsoft \ InetStp \ Configuration和\ SOFTWARE \ Wow6432Node \ Microsoft \ InetStp \ Configuration 

并重新启动应用程序池,重新启动服务器.

但我们仍然收到相同的文件大小错误.
我的问题是,

Azure VM是否会导致注册表修改不生效?如果可以的话,我们如何实现呢?

除了解决方案以外,还有其他建议吗?

In our web site we need to add around 2500 Url rewrites form there old site to new one, when we do this I have face an issue with . config file size, with all our redirects file is around 360Kb, I have try out following solutions which are posted in several community blogs but non of them are working.  

Note: our web site is running in Azure VM

1) split rewrites in to a separate file

      even we move redirects to separate .config file that new file is around 335kb so same error occurs.  we can omit this option

2) add registry key 

     I have add MaxWebConfigFileSizeInKB  key to  \SOFTWARE\Microsoft\InetStp\Configuration and \SOFTWARE\Wow6432Node\Microsoft\InetStp\Configuration 

and restart the app pool, restart the server. 

but still we are getting same file size error.  

My question is, 

is registry modifications not effecting because of Azure VM?  if so how we can achieve this?

apart form above solution any other suggestions? 

如果您能帮助我,我将非常感激.

I would be very thankful if any of you can help me with this. 

注意:我首先将此问题报告给了MS IIS.他们建议检查Azure支持的论坛

Note: I have first report this to MS IIS  forum they suggest to check on Azure support 

https://forums.iis.net/t/1239135.aspx 

https://forums.iis.net/t/1239135.aspx 

推荐答案

我建议您按照以下步骤操作,看看它是否适合您,右键单击REGEDIT中的父节点-添加一个名为 配置.然后为MaxWebConfigFileSizeInKB添加新的DWORD,您必须按照操作系统版本32/64位添加该值.

I suggest you follow these steps and see if it works for you, right click on the parent node in REGEDIT - add a new Key called Configuration. Then add new DWORD for MaxWebConfigFileSizeInKB, you must add the value as per os version 32/64 bit. 


Note: The steps outlined  above contains modifying the registry, do exercise caution while doing the steps you may want to backup the registry before modifying it.


这篇关于Web配置文件大小限制Azure VM中的IIS 8.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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