Programming

Self Hosted WCF Service with Certificates

Posted on

If you are self-hosting a WCF service, exposed via HTTP and requiring certificates for transport security, you’ll probably need to learn a little bit about netsh. If you are using IIS, you’ll just set up the certificates using inetmgr, but because you are self-hosting, you’ll need to run a command such as this: netsh http […]

Programming

Dealing with the Address Access Denied Exception

Posted on

This article literally only exists because the link supplied in the System.ServiceModel.AddressAccessDeniedException didn’t work at all for me. The basic scenario is that you are debugging a WCF service in Visual Studio and you get this error: System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8001/MyService/. Your process does not have access rights to this namespace (see […]

Programming

TransactionScope and WCF Services

Posted on

The problem I encountered was that, while I had started a TransactionScope in my calling method (and could even see a current transaction in my services) – an error in a second WCF service call was NOT rolling back the changes made in a previous WCF service call. The behaviour was as if each service […]