在 IIS 管理器中应用 SSL 证书,并且“该进程无法访问该文件,因为它正在被另一个进程使用”错误
我在 IIS 管理器中将自签名 SSL 证书应用到默认网站(添加了 HTTPS 绑定),之后当我尝试启动该网站时,收到以下错误消息: “该进程无法访问该文件,因为该文件正在被另一个进程使用。(HRESULT 异常:0x80070020)”。但是当我删除 HTTPS 绑定时,一切正常。 那么,问题出在哪里呢?我可能做错了什么?”
I applied a self-signed SSL certificate in IIS manager to Default Web Site(added the HTTPS binding) and after that when I'm trying to start the web site, I'm getting the following error message:
"The process cannot access the file because it's being used by another process. (Exception from HRESULT: 0x80070020) ". But when I remove the HTTPS binding, everything works fine.
So, what is the problem? What might have I done wrong?"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您是否尝试过 Microsoft 支持文章,其中提到当您尝试启动时发生此进程错误Internet 信息服务 MMC 管理单元中的网站
Have you tried the Microsoft Support Article that mentions this process error occuring when you try to start a Web site in the Internet Information Services MMC snap-in
如果您尝试在本地计算机上执行此操作,Skype 可以阻止 https 端口 (443)。要停止此操作:
Skype - 工具 >选项>高级>连接,然后取消选中“使用端口 80 和 443 作为传入连接的替代端口”。然后关闭 Skype(右键单击任务栏,“退出 Skype”),并尝试在 IIS 中再次启动网站。
If you're trying to do this on a local machine, Skype can block the https port (443). To stop this:
Skype - Tools > Options > Advanced > Connection, then uncheck 'Use port 80 and 443 as alternatives for incoming connections'. Then quite Skype (right click in task bar, 'Quit Skype'), and try starting the website again in IIS.
VmWare Workstation 8 因其虚拟机共享功能获得了 443 分。您可以在设置中禁用它。 http://communities.vmware.com/thread/341114
VmWare Workstation 8 grabs 443 for its VM Sharing feature. You can disable it in the settings. http://communities.vmware.com/thread/341114
是的,退出 Skype 桌面应用程序也为我解决了这个问题。
如果您运行的是 Windows 8(.1),并且您可以在不安装桌面 Skype 应用程序的情况下使用 Skype 应用程序(Windows 应用商店应用程序),则不会使用本地 443 端口。您也可以将其固定到任务栏。这个解决方案对我来说已经足够好了,因为我不需要桌面版本提供的所有功能。
Yes exiting the Skype desktop app fixed this for me also.
If your running Windows 8(.1) the Skype App (Windows Store App) doesn't use the local 443 port if you can live without installing the desktop Skype app. Also you can pin it to your taskbar. This solution is good enough for me since I don't need all of the features the desktop version offers.
您可能需要使用一些 sysinternals 工具来查看该文件是否确实被另一个进程使用。我推荐Process Explorer。找到罪魁祸首后,您通常可以了解它打开文件的原因。
如果您找不到任何进程,则您的代码可能会尝试打开该文件;检查您可能尚未关闭的任何文件处理程序。
You may want to use some sysinternals tools to see if the file is really used by another process. I recommend Process Explorer. Once you've located the culprit, you can usually see why it opens the file.
If you can't find any process, maybe your code tries to open the file; check for any file handlers you may not have closed.