Showing posts with label wcf. Show all posts
Showing posts with label wcf. Show all posts

Tuesday, March 2, 2010

WCF: System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted

When testing a web service in Visual Studio I got the "System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted" error, which prevented me from testing the code. I quickly google the
error
and got the following solution:

  1. Open regedit.
  2. Open key HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
  3. Create or Edit DWORD with MaxUserPort as the value.
  4. Set it to a higher number. (i.e. 50000 Decimal)


Answered by JRista

Monday, April 27, 2009

WCF, BAL, and Serializing LINQ Objects

With LINQ to SQL as an O/RM (object relational mapper) it's never been easier to consume data in your business logic, but how do you expose these data objects through a webservice so that they can be easily consumed by an applicaton. I've created a short video demo that show's how to create a LINQ to SQL class in a business access layer library and expose it through a WCF Webservice.

Watch my video on how to expose a LINQ to SQL Class via WCF.

Thursday, April 23, 2009

WCF, SOAP, JSON, and the REST of us

The more I learn about the power and flexiblity of WCF (Windows Communication Foundation) the more I like it.

See this blog by Anthony Steele's REST from WCF 3.5.