解决在IIS中点击浏览没反应的问题

今天早上iis突然没反应了

 

问题:在地址栏中输入地址可以访问,但直接在IIS右击文件点击浏览没有反应。

解决方法:把下面的内容内容复制到文档,保存更改为REG类型导入注册表即可。

REGEDIT4

[HKEY_CLASSES_ROOT/CLSID/{0002DF01-0000-0000-C000-000000000046}/LocalServer32]
@="C://Program Files//internet explorer//iexplore.exe"

[HKEY_CLASSES_ROOT/file/shell]
@="open"

[HKEY_CLASSES_ROOT/file/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/ftp/shell]
@="open"

[HKEY_CLASSES_ROOT/ftp/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/htmlfile/shell]
@="open"

[HKEY_CLASSES_ROOT/htmlfile/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/HTTP/shell]
@="open"

[HKEY_CLASSES_ROOT/HTTP/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/https/shell]
@="open"

[HKEY_CLASSES_ROOT/https/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/InternetShortcut/shell]
@="open"

[HKEY_CLASSES_ROOT/InternetShortcut/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_CLASSES_ROOT/mhtmlfile/shell]
@="open"

[HKEY_CLASSES_ROOT/mhtmlfile/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""


[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{0002DF01-0000-0000-C000-000000000046}/LocalServer32]
@="C://Program Files//internet explorer//iexplore.exe"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/file/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/file/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/ftp/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/ftp/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/htmlfile/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/htmlfile/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/HTTP/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/HTTP/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/https/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/https/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/InternetShortcut/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/InternetShortcut/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/mhtmlfile/shell]
@="open"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/mhtmlfile/shell/open/command]
@="/"C://Program Files//internet explorer//iexplore.exe/" /"%1/""

[HKEY_LOCAL_MACHINE/SOFTWARE/Clients/StartMenuInternet]
@="IEXPLORE.EXE"

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
IIS下运行的程序是运行在IIS的进程的,而`Process.Start`方法是启动一个新的进程来运行指定的可执行文件或者打开指定的文件。所以,如果在IIS下运行的程序调用`Process.Start`方法,会发现有任何反应。 如果需要在IIS下运行的程序调用`Process.Start`方法来启动外部程序,可以考虑使用`System.Diagnostics.Process`类的`StartInfo`属性,来设置要启动的程序的路径、参数等信息,然后再调用`Start`方法启动进程。 例如,以下代码可以在IIS下启动一个命令行窗口,并执行指定的命令: ```csharp System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.Arguments = "/c dir"; process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = true; process.Start(); string output = process.StandardOutput.ReadToEnd(); process.WaitForExit(); ``` 其,`FileName`属性指定要启动的程序的路径,`Arguments`属性指定要传递给程序的参数,`UseShellExecute`属性设置为`false`表示不使用操作系统的Shell来启动进程,`RedirectStandardOutput`属性设置为`true`表示将进程的标准输出重定向到`StandardOutput`属性,然后通过`StandardOutput.ReadToEnd()`方法来获取进程的标准输出。最后,调用`WaitForExit`方法等待程序执行完成。 需要注意的是,如果要在IIS下运行的程序调用`Process.Start`方法启动外部程序,需要确保IIS应用程序池的身份验证方式为“集成式”,并且应用程序池的身份验证用户具有足够的权限来启动外部程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值