Mark Barto's Blog
Technical Blog about the Microsoft .NET Platform and everything that surrounds it such as .Net, C#, BizTalk, WCF, ASP.NET, SQL, Silverlight, IIS ...WCF, BizTalk: The signature is invalid
We have generated with the BizTalk WCF Publishing Wizard a WCF Service based on a Metadata only endpoint for a Receive Location. The receive location will be configured as a net-MSMQ transport type.
We have encountered a problem that the message will not be send to the queue but to the dead letter queue with the message "The signature is invalid".
After some investigation we have encountered that the problem exists if you have regenerated the WCF service with the wizard and you do an update service reference in your project.
--Event Type: Warning
Event Source: MSMQ
Event Category: None
Event ID: 2196
Date: 8-6-2010
Time: 9:38:23
User: N/A
Computer: -
Description:
Message Queuing failed to verify digital signature of a message sent to queue machine\qspin. The message was rejected. A negative arrival acknowledgement will be sent if requested by the sender. This event is logged at most once per 600 seconds. To change this setting, set \HKLM\Software\Microsoft\MSMQ\Parameters\Event2196 registry value to desired time in seconds.For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
--
We didn't use any security as transport so the error about the signature is invalid is very strange.
The solution was to delete the service reference to this WCF Service and create the service reference again.
When we have done that the problem was solved and we didn't got the above error anymore.
Strange behavior
Leave a comment