如何在本地iis上托管一个唯一的html网站 [英] how to host an only html site on local iis
本文介绍了如何在本地iis上托管一个唯一的html网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在我的系统上将我的asp.net网站映射到iis上它运行正常但是当我在我的系统上映射一个html网站时它会出错...
HTTP错误500.19 - 内部服务器错误
无法访问请求的页面,因为页面的相关配置数据无效。
为什么会这样?
when i map my asp.net web site on my system on iis it works fine but when i map an html website on my system iis it give error ....
"HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid."
why this ?
推荐答案
假设您正在运行.Net 4站点,machine.config已经定义了scriptResourceHandler。从web.config中删除此部分,你应该没问题。
Assuming you are running a .Net 4 site, the machine.config will already have defined the scriptResourceHandler. Remove this section from the web.config and you should be fine.
也许你可以查看这个教程 http://www.iis.net/learn/manage/configuring-security/application-pool-identities [ ^ ]
maybe you can check this tutorial http://www.iis.net/learn/manage/configuring-security/application-pool-identities[^]
这篇关于如何在本地iis上托管一个唯一的html网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文