IIS EXPRESS无法启动

时间:2021-08-04 17:53:23

我在历经千辛万苦成功安装了Microsoft visual studio express for web 后,加载项目运行发现IIS Express无法启动,


1.首先查看事件管理器,发现有错误如下

IIS EXPRESS无法启动


2.然后安装IIS 服务器报错,卸载重装N次无果


3.按照网上

启动iis7管理服务器提示:无法启动计算机上的服务W3SVC
启动Windows Process Activation Service服务,报错:6801 指定资源管理器中的事务支持未启动或已关闭 
启动world wide web publishing service服务,报错:1068:依赖服务或组无法启动


修复错误
运行命令提示符 fsutil resource setautoreset true c:\     
打开运行输入 services.msc     
启动Windows Process Activation Service服务     
再启动world wide web publishing service服务     
再启动iis7就可以


1.启动Windows Process Activation Service报错,然后在windows添加或删除功能中安装Windows Process Activation Service

2.然后启动world wide web publishing service提示无法加载依赖项

然后按照

Well finally after a week struggle, i came to a solution. I am listing down the steps which i followed to solve my error

1- Confirm that "Windows Management Instrumentation" is started and its start up type is set to automatic.

2- Also make sure the following dependency services are started for World Wide Web Publishing Service.

Windows Process Activation Service, Remote Procedure Call (RPC), DCOM Server Process Launcher, RPC Endpoint Mapper.

3- Open regedit, navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP]: a) Double click on Start and change value data from 4(disabled) to 3(automatically). b) Delete "NoRun" key if this key exists

4- UN-install "Internet information Service" and "Windows process activation service(if it is already installed)" from "Turn windows feature on or off" and Restart your PC.

5- Type the below command in CMD and press enter net start http Now it will notify you that service is already running.

6- Re-install Internet information Service from "Turn windows feature on or off".

7- Start IIS and my websites are started now, no more "w3svc service is not running error."

在第6步net start http报错,提示找不到服务

平常一向好好的,今天不知道为什么,网站一直运行很慢,到中午想传点东西去网站上的时候,却发现远程服务器一直打不开,打电话问了电信机房的工作人员,他脑残得直接把服务器重启了,接着一系列的问题就接踵而至。被老板在身后待了一个小时给逼着弄好了,现分享一下解决方案。
服务器重启之后,到IIS管理服务器重启网站,就会跳出“iis不能启动,万维发布(w3svc)服务已停止”的错误信息,再次重启还是这样。google了一下,说是要启动“World Wide Web Publishing Service”这项windows服务就行了。于是我在windows服务里找到这项服务(win7直接搜索栏输入“服务”回车进入,server2008则是进入控制面板找到“程序”->“程序和功能”->“打开或关闭windows功能”进入服务),发现服务根本就启动不了,直接报错。继续google,发现启动此服务要先启动此服务的依赖服务,于是找到“World Wide Web Publishing Service”的依赖服务并一一启动,启动过程中发现Http服务启动不了,提示Http服务被禁用了。我在命令提示符输入“net start http”回车之后又报一个“发生系统错误 1058   无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动”,于是去查询注册表,在“运行”输入命令regedit 回车打开注册表编译器,进入HKEY_LOCAL_MACHINESYSTEMCurrentCont rolSetservicesHTTP中找到Start选项,发现后面的“数据”项变成“0x0000000(4)”,于是把这个数据项更改为“0x0000000(3)”,确定退出之后重启了服务器,再重启了“World Wide Web Publishing Service”服务。最后重启IIS重启网站,OK了!

修改注册表重启后,可以正常启动IIS Express了