IIS抱怨端口被使用时,它不是

我需要恢复一个应用程序,以便在被淘汰之前可以被第三方存档。

为了在不危及整个服务器的情况下这样做,我想在连接之前强制用户进行身份validation,这意味着需要TLS。

不幸的是,该服务器上的443端口(xxx.xxx.xxx.120)由另一个应用程序(一个使用自己的HTTP服务器的Web邮件系统)占用,所以我添加了一个新的公共IP到服务器(xxx.xxx.xxx .120),并在这个新IP上的端口443的IIS中添加一个绑定:

IIS网站的绑定

我也确定,其他应用程序不在0.0.0.0:443债券,但使用特定的IP地址。

最后,我跑了netstat -ano | find ":443" netstat -ano | find ":443" ,得到这个:

 TCP xxx.xxx.xxx.120:443 0.0.0.0:0 LISTENING 3016 TCP xxx.xxx.xxx.120:443 0.0.0.0:0 LISTENING 3016 

xxx.xxx.xxx.120是最初的服务器IP地址,新的是xxx.xxx.xxx.122。

为了好的措施,我也跑了netstat -aon | Find "xxx.xxx.xxx.122:443" netstat -aon | Find "xxx.xxx.xxx.122:443" (新的IP),并没有得到任何回报,如预期。

不幸的是,当我尝试启动Web应用程序时,出现以下错误消息:

错误消息:进程无法访问该文件,因为它正在被另一个进程使用。 (从HRESULT异常:0x80070020)

这个错误是IIS发出的一个错误,如果IP:Port尝试绑定,但是netstat清楚的说它是可用的。

我错过了什么?

编辑:当我尝试启动服务时,系统事件日志中有两个事件:

 Log Name: System Source: Microsoft-Windows-IIS-W3SVC Date: 7/19/2014 11:59:44 AM Event ID: 1004 Task Category: None Level: Error Keywords: Classic User: N/A Computer: xxxx Description: The World Wide Web Publishing Service (WWW Service) did not register the URL prefix https://XXX.XXX.XXX.122:443/ for site 2. The site has been disabled. The data field contains the error number. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-IIS-W3SVC" Guid="{xxxxx}" EventSourceName="W3SVC" /> <EventID Qualifiers="49152">1004</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2014-07-19T09:59:44.000000000Z" /> <EventRecordID>119596</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>System</Channel> <Computer>xxxx</Computer> <Security /> </System> <EventData> <Data Name="UrlPrefix">https://XXX.XXX.XXX.122:443/</Data> <Data Name="SiteID">2</Data> <Binary>20000780</Binary> </EventData> </Event> 

 Log Name: System Source: Microsoft-Windows-HttpEvent Date: 7/19/2014 11:59:44 AM Event ID: 15005 Task Category: None Level: Error Keywords: Classic User: N/A Computer: XXX Description: Unable to bind to the underlying transport for [::]:443. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-HttpEvent" Guid="{xxx}" EventSourceName="HTTP" /> <EventID Qualifiers="49152">15005</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2014-07-19T09:59:44.330234300Z" /> <EventRecordID>119597</EventRecordID> <Correlation /> <Execution ProcessID="4" ThreadID="88" /> <Channel>System</Channel> <Computer>XXX</Computer> <Security /> </System> <EventData> <Data Name="DeviceObject">\Device\Http\ReqQueue</Data> <Data Name="Address">[::]:443</Data> <Binary>0000040002003000000000009D3A00C0000000000000000000000000000000000000000000000000430000C0</Binary> </EventData> </Event> 

2.事件“[::]:443”中显示的IP地址看起来像IPv6。 也许这两个Web应用程序都尝试绑定除指定的IPv4地址以外的所有IPv6地址。 尝试暂时禁用IPv6以查看问题是否消失。