I tried setting up a virtual folder on IIS7.0 on windows 2008 server. when trying to browse the aspx pages, i received an error like "HTTP Error 500.19 - Internal Server Error" and had few more lines saying the config file is incorrect.
我尝试在Windows 2008服务器上的IIS7.0上设置虚拟文件夹。当我试图浏览aspx页面时,我收到一个错误,如“HTTP错误500.19 - 内部服务器错误”,并且还有更多的行说配置文件不正确。
Few google results pointed to applicationHost.config file might be incorrect.
很少有google结果指向applicationHost.config文件可能不正确。
just by trial and error I checked up the space in the server and found its just having 1MB free space.
只是通过反复试验我检查了服务器中的空间,发现它只有1MB的可用空间。
SO freed up 1 GB space and then the error was gone
因此释放1 GB空间然后错误消失了
My question: whenever a website is accessed first time in IIS7.0 does it try to update applicationHost file?
我的问题:每当在IIS7.0中第一次访问网站时,它是否会尝试更新applicationHost文件?
what is the role of applicationHost in IIS7.0
applicationHost在IIS7.0中的作用是什么
1 个解决方案
#1
The 500.19 error is indeed caused by errors in configuration files but not necessarily applicationHost.config, it can also be caused by errors in the web.config file for the application or any web.config file that applies to the application/virtual folder/site
500.19错误确实是由配置文件中的错误引起的,但不一定是applicationHost.config,它也可能是由应用程序的web.config文件中的错误或应用于应用程序/虚拟文件夹/站点的任何web.config文件引起的
Link to MS Support article about this error - http://support.microsoft.com/kb/942055
链接到MS支持文章有关此错误 - http://support.microsoft.com/kb/942055
The following link is to an article that introduces the applicationHost.config file - http://learn.iis.net/page.aspx/128/iis-7-configuration-reference/
以下链接是介绍applicationHost.config文件的文章 - http://learn.iis.net/page.aspx/128/iis-7-configuration-reference/
If you read it you'll see that the main role of the file is to configure the general setup of the web server and control what configuration can be overridden in web.config files. It also tells IIS all the Sites, Virtual Folders and Applications that are running on it.
如果您阅读它,您将看到该文件的主要作用是配置Web服务器的常规设置并控制可以在web.config文件中覆盖的配置。它还告诉IIS所有正在其上运行的站点,虚拟文件夹和应用程序。
Given that your web server has a measly 1MB free space (how did you get that low without the entire machine crashing!!??) I would suspect that IIS 7 may do something with the file and was unable to update it on disk correctly due to the lack of space leading to the corrupted configuration.
鉴于您的Web服务器有一个可用的1MB可用空间(如果没有整个机器崩溃,您是如何得到的那样低!!)我怀疑IIS 7可能对该文件做了一些事情并且无法在磁盘上正确更新它缺乏空间导致配置损坏。
#1
The 500.19 error is indeed caused by errors in configuration files but not necessarily applicationHost.config, it can also be caused by errors in the web.config file for the application or any web.config file that applies to the application/virtual folder/site
500.19错误确实是由配置文件中的错误引起的,但不一定是applicationHost.config,它也可能是由应用程序的web.config文件中的错误或应用于应用程序/虚拟文件夹/站点的任何web.config文件引起的
Link to MS Support article about this error - http://support.microsoft.com/kb/942055
链接到MS支持文章有关此错误 - http://support.microsoft.com/kb/942055
The following link is to an article that introduces the applicationHost.config file - http://learn.iis.net/page.aspx/128/iis-7-configuration-reference/
以下链接是介绍applicationHost.config文件的文章 - http://learn.iis.net/page.aspx/128/iis-7-configuration-reference/
If you read it you'll see that the main role of the file is to configure the general setup of the web server and control what configuration can be overridden in web.config files. It also tells IIS all the Sites, Virtual Folders and Applications that are running on it.
如果您阅读它,您将看到该文件的主要作用是配置Web服务器的常规设置并控制可以在web.config文件中覆盖的配置。它还告诉IIS所有正在其上运行的站点,虚拟文件夹和应用程序。
Given that your web server has a measly 1MB free space (how did you get that low without the entire machine crashing!!??) I would suspect that IIS 7 may do something with the file and was unable to update it on disk correctly due to the lack of space leading to the corrupted configuration.
鉴于您的Web服务器有一个可用的1MB可用空间(如果没有整个机器崩溃,您是如何得到的那样低!!)我怀疑IIS 7可能对该文件做了一些事情并且无法在磁盘上正确更新它缺乏空间导致配置损坏。