- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经看过这些帖子:
wcf System.ServiceModel.AddressAlreadyInUseException ,
Windows Service hosted WCF over HTTPS ,
Getting AddressAlreadyInUseException after upgrading to .NET 4.5 ,
他们都没有解决我的问题。
我在 .net 4.5 中有几个 wcf 服务。它们都在同一个地址中,我在 WCF 服务主机中收到此异常:
System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:443/mafawcf01/ServicioAddin.svc/ because TCP port 443 is being used by another application. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout)
at System.ServiceModel.Channels.SingletonChannelListener`3.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecurityListenerSettingsLifetimeManager.Open(TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenAuthenticator.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecurityUtils.OpenTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionServerSettings.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Security.SecurityListenerSettingsLifetimeManager.Open(TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.DelegatingChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo info)
System.Net.HttpListenerException (0x80004005): The process cannot access the file because it is being used by another process
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/mafawcf01/ServicioAddin.svc"/>
</baseAddresses>
</host>
</service>
<service name="mafawcf01.ServicioPing" behaviorConfiguration="mafawcf01.ServicioPingBehavior">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="secureHttpBinding"
contract="mafawcf01.IServicioPing">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/mafawcf01/ServicioPing.svc" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="mafawcf01.Service1Behavior" name="mafawcf01.ServicioCargue">
<endpoint address="https://localhost:443/MafaWCF01/ServicioCargue.svc"
binding="customBinding" bindingConfiguration="myCustomHttpBinding"
contract="mafawcf01.IServicioCargue" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/MafaWCF01/ServicioCargue/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="mafawcf01.Service1Behavior" name="mafawcf01.ServicioValidacionMultiple">
<endpoint address="https://localhost:443/MafaWCF01/ServicioValidacionMultiple.svc"
binding="customBinding" bindingConfiguration="transporteSeguro"
contract="mafawcf01.IServicioValidacionMultiple" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/MafaWCF01/ServicioValidacionMultiple/" />
</baseAddresses>
</host>
netsh http add urlacl url=https://+:443/MafaWCF01
netsh http add sslcert ipport=0.0.0.0:443 certhash={some cert hash} appid={some appid}
最佳答案
万一这对任何人都有帮助。尝试在控制台应用程序中托管 wcf 服务时遇到了同样的问题。我所做的是打开 wcf 服务库的属性(Alt + Enter 或右键单击-> 属性),然后转到属性窗口中的 WCF 选项选项卡,并取消选中“调试同一解决方案中的另一个项目时启动 WCF 服务主机”。那么问题就解决了。
关于.net - wcf AddressAlreadyInUseException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20615405/
我已经看过这些帖子: wcf System.ServiceModel.AddressAlreadyInUseException , Windows Service hosted WCF over HT
我正在运行 WCF 服务,如果地址为 ..err .. 已在使用中,调用 ServiceHost 的 Open() 方法将引发 AddressAlreadyInUseException ! 有没有办法
在使用 WCF 的 C# 中,我不止一次遇到程序结束时未释放端口的情况。当我使用 tcpview 时,我看到端口处于“监听”状态并且进程“不存在”。 当进程不再运行时,怎么会发生这种情况? 我什至无法
如果此问题在 stackOverflow 上出现两次,我们深表歉意 我试图在 Windows Server 2003 机器上运行 wcf 服务。我收到了 System.ServiceModel.Add
自从我昨天重新启动计算机以来,由于此错误,我无法启动任何 Azure 云项目:- System.ServiceModel.AddressAlreadyInUseException: Cannot li
让我解释一下我是如何从如此简单的代码中得到这个异常的,我使用了一个名为 cAlgo 的交易程序,我在其中尝试运行 NetMQ 服务器,显然在停止它时,它没有正确关闭,离开了端口在我重新启动计算机之前无
当我们尝试使用 Azure 服务总线中继地址和 webHttpRelayBinding 启动 WCF 服务时,我们收到 AddressAlreadyInUseException。 我们在这里使用示例:
我是网络服务领域的新手。我只是在使用教程编写一个简单的服务。MyService.cs的代码如下: using System; using System.Collections.Generic; usi
我是一名优秀的程序员,十分优秀!