Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

Error in TcpSyncStockService Sample

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Carbajal [MVP] - 30 Nov 2004 19:48 GMT
Hi All, when I try to run the TcpSyncStockService.exe sample project from
the WSE2.0 SP2, I get the exception below, any help will be appreciated.

Regards,
Daniel.

****** Exception Raised ******
System.Net.Sockets.SocketException: Only one usage of each socket address
(proto
col/network address/port)
is normally permitted
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Microsoft.Web.Services2.Messaging.SoapTcpListener.Start()
  at
Microsoft.Web.Services2.Messaging.SoapTcpTransport.GetInputChannel(Endpoin
tReference endpoint, SoapChannelCapabilities capabilities)
  at Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
endp
oint, Type receiver, Boolean passive)
  at Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
endp
oint, Type receiver)
  at StockService.StockService.StockServiceHost.Run() in C:\Program
Files\Micro
soft
WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
e 83
  at StockService.StockService.StockServiceHost.Main(String[] args) in
C:\Progr
am Files\Microsoft
WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockServi
ce\Main.vb:line 60
******************************

Press any key to exit when done...
Kirill Gavrylyuk [MSFT] - 30 Nov 2004 20:27 GMT
Most likely you atempt to run more then one instance of this sample service
simultaneously, for example you're running it in IDE and from the command
line.

The way the sample is built, there can be only one instance of
TcpSyncStockService.exe running per machine.
thanks

> Hi All, when I try to run the TcpSyncStockService.exe sample project from
> the WSE2.0 SP2, I get the exception below, any help will be appreciated.
[quoted text clipped - 13 lines]
> tReference endpoint, SoapChannelCapabilities capabilities)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver, Boolean passive)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver)
>    at StockService.StockService.StockServiceHost.Run() in C:\Program
> Files\Micro
> soft

WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
> e 83
>    at StockService.StockService.StockServiceHost.Main(String[] args) in
[quoted text clipped - 5 lines]
>
> Press any key to exit when done...
Daniel Carbajal [MVP] - 30 Nov 2004 21:17 GMT
Thanks for your response, but I have only one instance of this sample
running simultaneously...and I have the same problem with other programs....

Daniel.

> Most likely you atempt to run more then one instance of this sample service
> simultaneously, for example you're running it in IDE and from the command
[quoted text clipped - 18 lines]
> >    at Microsoft.Web.Services2.Messaging.SoapTcpListener.Start()
> >    at

Microsoft.Web.Services2.Messaging.SoapTcpTransport.GetInputChannel(Endpoin
> > tReference endpoint, SoapChannelCapabilities capabilities)
> >    at
[quoted text clipped - 8 lines]
> > Files\Micro
> > soft

WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
> > e 83
> >    at StockService.StockService.StockServiceHost.Main(String[] args) in
[quoted text clipped - 5 lines]
> >
> > Press any key to exit when done...
Sidd - 01 Dec 2004 02:09 GMT
Hi Daniel,

   Could you possible be having two instances of the
TcpSyncStockService.exe running? If you have two instances of the service
running, you would see this error.

Thanks,

Sidd

> Hi All, when I try to run the TcpSyncStockService.exe sample project from
> the WSE2.0 SP2, I get the exception below, any help will be appreciated.
[quoted text clipped - 13 lines]
> tReference endpoint, SoapChannelCapabilities capabilities)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver, Boolean passive)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver)
>    at StockService.StockService.StockServiceHost.Run() in C:\Program
> Files\Micro
> soft

WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
> e 83
>    at StockService.StockService.StockServiceHost.Main(String[] args) in
[quoted text clipped - 5 lines]
>
> Press any key to exit when done...
Ramadass - 02 Dec 2004 18:45 GMT
Hi
 This problem can occur if your the TCP port you are trying to use is
registered and is unable to be freed. In the past when i have runn into
this.
i added a port address higher than 2000 to the address.
So you can try  soap.tcp://localhost:4000/<nameofservice>
This solves it for me. Also if i restart my machine, i can reclaim the port.
Hope this helps.
Ramadass

> Hi All, when I try to run the TcpSyncStockService.exe sample project from
> the WSE2.0 SP2, I get the exception below, any help will be appreciated.
[quoted text clipped - 13 lines]
> tReference endpoint, SoapChannelCapabilities capabilities)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver, Boolean passive)
>    at
Microsoft.Web.Services2.Messaging.SoapReceivers.Add(EndpointReference
> endp
> oint, Type receiver)
>    at StockService.StockService.StockServiceHost.Run() in C:\Program
> Files\Micro
> soft

WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
> e 83
>    at StockService.StockService.StockServiceHost.Main(String[] args) in
[quoted text clipped - 5 lines]
>
> Press any key to exit when done...
Daniel Carbajal [MVP] - 02 Dec 2004 19:51 GMT
Oh, good idea!, I tried with the 9000 port and now it works!
Thanks,
Daniel.

> Hi
>   This problem can occur if your the TCP port you are trying to use is
[quoted text clipped - 20 lines]
> >    at Microsoft.Web.Services2.Messaging.SoapTcpListener.Start()
> >    at

Microsoft.Web.Services2.Messaging.SoapTcpTransport.GetInputChannel(Endpoin
> > tReference endpoint, SoapChannelCapabilities capabilities)
> >    at
[quoted text clipped - 8 lines]
> > Files\Micro
> > soft

WSE\v2.0\Samples\VB\QuickStart\TcpSyncStockService\StockService\Main.vb:lin
> > e 83
> >    at StockService.StockService.StockServiceHost.Main(String[] args) in
[quoted text clipped - 5 lines]
> >
> > Press any key to exit when done...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.