Category Archives: WCF

/ WCF

An item with the same key has already been added.

I got this error when browsing a net.msmq service. Symptoms: When I do IISRESET, it was momentarily giving Invalid URI: The hostname could not be parsed   Cause: The bindings information on the website was net.msmq – *   Solution:

/ WCF

An item with the same key has already been added.

I got this error when browsing a net.msmq service. Symptoms: When I do IISRESET, it was momentarily giving Invalid URI: The hostname could not be parsed   Cause: The bindings information on the website was net.msmq – *   Solution:

/ MSMQ, WCF

WCF NetMsmq over HTTP

WCF leverages MSMQ’s HTTP communication when the netMsmqBinding’s queueTransferProtocol is set to Srmp or SrmpSecure. MSMQ itself has a bunch of restrictions when delivering messages over the HTTP and HTTPS ports and the following is a partial check list to

/ MSMQ, WCF

WCF NetMsmq over HTTP

WCF leverages MSMQ’s HTTP communication when the netMsmqBinding’s queueTransferProtocol is set to Srmp or SrmpSecure. MSMQ itself has a bunch of restrictions when delivering messages over the HTTP and HTTPS ports and the following is a partial check list to

/ WCF

Microsoft.Web.Publishing.targets (1372): Could not open Source file: The given path’s format is not supported.

This error occurs only in TFS build, developer builds compile and deploy fine. Apparent Cause: WebServiceProject1 references WebServiceProject2 where both are deployed. Solution (worked): Move code from WebServiceProject2 to ClassLibrary2 WebServiceProject1 references ClassLibrary2 WebServiceProject2 references ClassLibrary2

/ WCF

Microsoft.Web.Publishing.targets (1372): Could not open Source file: The given path’s format is not supported.

This error occurs only in TFS build, developer builds compile and deploy fine. Apparent Cause: WebServiceProject1 references WebServiceProject2 where both are deployed. Solution (worked): Move code from WebServiceProject2 to ClassLibrary2 WebServiceProject1 references ClassLibrary2 WebServiceProject2 references ClassLibrary2

AppFabric QuickStart

Install AppFabric from http://msdn.microsoft.com/windowsserver/ee695849, use all defaults, only install Cache Service Go to Cache Power Shell and enter new cache  New-Cache -cacheName Catalog Start AppFabric service in services.msc Run command Start-CacheCluster Add references to cache dlls (found in WINDIR) Microsoft.ApplicationServer.Caching.*

AppFabric QuickStart

Install AppFabric from http://msdn.microsoft.com/windowsserver/ee695849, use all defaults, only install Cache Service Go to Cache Power Shell and enter new cache  New-Cache -cacheName Catalog Start AppFabric service in services.msc Run command Start-CacheCluster Add references to cache dlls (found in WINDIR) Microsoft.ApplicationServer.Caching.*

/ WCF

WCF Duplex Binding

Found a nice article that explains creating subscription/callback service in simple terms. http://realfiction.net/go/113. I will attempt to further simplify that for VS2010 (soon)

/ WCF

WCF Duplex Binding

Found a nice article that explains creating subscription/callback service in simple terms. http://realfiction.net/go/113. I will attempt to further simplify that for VS2010 (soon)

WCF REST–405 Method Not Allowed

Got this error on one of the developer machines where it is throwing 405 method not allowed for some PUT operations. The fix is to remove WebDAV module for the web app in IIS. http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/29cc39cf-ef8b-4231-aed1-f94376c8c6dd

WCF REST–405 Method Not Allowed

Got this error on one of the developer machines where it is throwing 405 method not allowed for some PUT operations. The fix is to remove WebDAV module for the web app in IIS. http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/29cc39cf-ef8b-4231-aed1-f94376c8c6dd