簡體   English   中英

IP端點0.0.0.0:9000上通信對象和偵聽器的WCF異常

[英]WCF exception on communication object & listener on IP endpoint 0.0.0.0:9000

我在以下兩件事上得到了WCFexception

通信對象System.ServiceModel.ServiceHost不能用於通信,因為它處於故障狀態。

IP端點0.0.0.0:9000上已經存在一個偵聽器。 確保您沒有嘗試在應用程序中多次使用此終結點,並且沒有其他應用程序在此終結點上進行偵聽。

如果嘗試瀏覽,將顯示無法顯示頁面的消息。如果重新啟動服務器/服務,它將開始工作。 我是WCF的新手。 請幫助我解決問題。

提前致謝。

Please find below the stack trace


Message: HandlingInstanceID: 
An exception of type 'System.ServiceModel.AddressAlreadyInUseException' occurred and was caught.
----------------------------------------------------------------------------
Type : System.ServiceModel.AddressAlreadyInUseException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : There is already a listener on IP endpoint 0.0.0.0:9000.  Make sure that you are not trying to use this endpoint multiple times in your application and that there are no other applications listening on this endpoint.
Source : System.ServiceModel
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Listen()
Stack Trace :    at System.ServiceModel.Channels.SocketConnectionListener.Listen()
   at System.ServiceModel.Channels.BufferedConnectionListener.Listen()
   at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()
   at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
   at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
   at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.TcpChannelListener`2.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.Channels.CommunicationObject.Open()
   at PRWCFWindowsHost.HostEngine.StartPRSyncService() in F:\Source Code\Application\PRApplication\PR_SOURCECODE_VSS_MARCH\PR.root\PR\PRWCFWindowsHost\HostEngine.cs:line 101

TimeStamp : 06/10/2015 08:45:02
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : WindowsHost.exe
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\SYSTEM
    Inner Exception
    ---------------
    Type : System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Only one usage of each socket address (protocol/network address/port) is normally permitted
    Source : System
    Help link : 
    ErrorCode : 10048
    SocketErrorCode : AddressAlreadyInUse
    NativeErrorCode : 10048
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void DoBind(System.Net.EndPoint, System.Net.SocketAddress)
    Stack Trace :    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at System.ServiceModel.Channels.SocketConnectionListener.Listen()

Message: HandlingInstanceID: 6978b145-1b73-443d-917c-839221b6bab8
An exception of type 'System.ServiceModel.CommunicationObjectFaultedException' occurred and was caught.
-------------------------------------------------------------------------------------------------------
10/06/2015 10:55:23
Type : System.ServiceModel.CommunicationObjectFaultedException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state.
Source : System.ServiceModel
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Close(System.TimeSpan)
Stack Trace :    at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Close()
   at WindowsHost.HostEngine.OnStop() in F:\Source Code\Application issue\PRApplication\PR_SOURCECODE_VSS_MARCH\PR.root\PR\WindowsHost\HostEngine.cs:line 84

Additional Info:

MachineName : 
TimeStamp : 06/10/2015 08:55:23
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : WindowsHost.exe
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\SYSTEM


Message: HandlingInstanceID: 1ca8f69a-8e36-4e99-a5eb-e`enter code here`5f0e5dc7a28
An exception of type 'System.IO.FileNotFoundException' occurred and was caught.
-------------------------------------------------------------------------------
10/06/2015 11:52:33
Type : System.IO.FileNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not find file 'C:\ProcessLog.log'.
Source : mscorlib
Help link : 
FileName : C:\RunProcessLog.log
FusionLog : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Void WinIOError(Int32, System.String)
Stack Trace :    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at ITG.PR.BusinessLayer.FileManager.ReadResultSetRebuildLogFile(List`1 lResultSetList, Hashtable PreviousResultSet)
   at ITG.PR.PRWCFService.SyncedService.ReadResultSetRebuildLogFile(List`1 lResultSetList, Hashtable PreviousResultSet) in F:\Source Code\Application\PRApplication\PR_SOURCECODE_VSS_MARCH\PR.root\PR\PRWCFService\SyncedService.cs:line 3094

  FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : WindowsHost.exe
ThreadIdentity : IIS APPPOOL\DoAppPool
WindowsIdentity : NT AUTHORITY\SYSTEM

我假設您在Visual Studio中遇到此錯誤。轉到項目文件的屬性。 在“ Web”選項卡中找到項目URL。 您會找到類似http:// localhost:9000 /的網址。 在此處為http:// localhost:11483 /這樣的名稱指定其他端口號

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM