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:
Open regedit.
Open key HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
Create or Edit DWORD with MaxUserPort as the value.
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.