Exception while sending message thru WCF-BasicHTTP adapter

Home Page Forums BizTalk 2004 – BizTalk 2010 Exception while sending message thru WCF-BasicHTTP adapter

Viewing 1 reply thread
  • Author
    Posts
    • #20563

      I am consuming a web service using WCF-basicHTTP adapter but I am getting below exception while sending the message thru the port. Does any one have an idea what it is?

       

       Thank you

       

       

      A message sent to adapter “WCF-BasicHttp” on send port “SendPort3” with URI “https://sitename.com/port” is suspended.

      Error details: System.TypeInitializationException: The type initializer for ‘System.ServiceModel.DiagnosticUtility’ threw an exception. —> System.MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)

      at System.ServiceModel.DiagnosticUtility.InitDiagnosticTraceImpl(TraceSourceKind sourceType, String traceSourceName)

      at System.ServiceModel.DiagnosticUtility.InitializeTracing()

      at System.ServiceModel.DiagnosticUtility..cctor()

      — End of inner exception stack trace —

      at System.ServiceModel.Channels.CommunicationObject.set_TraceOpenAndClose(Boolean value)

      at System.ServiceModel.ChannelFactory..ctor()

      at System.ServiceModel.ChannelFactory`1..ctor(Type channelType)

      at System.ServiceModel.ChannelFactory`1..ctor(Binding binding, EndpointAddress remoteAddress)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.CreateChannelFactory[TChannel](IBaseMessage bizTalkMessage)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.InitializeValues(IBaseMessage message)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2..ctor(IBaseMessage message, WcfTransmitter`2 transmitter)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfTransmitter`2.GetClientFromCache(String spid, IBaseMessage message)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfAsyncBatch`2.BatchWorker(List`1 messages)

      MessageId: {AD22AFC8-BA90-4778-95D7-F9523002C5B7}

      InstanceID: {88E30499-ADEB-4EC4-BBF3-A1B8F7C1DD70}

       

    • #20565

      Looks like you have WCF tracing turned on the error has to do with the tracing.  Do you have WCF tracing on?  If so, maybe try turning it off. WCF tracing is configured using the SvcConfig tool, and needs to be configured in the BizTalk config file.

      • #20566

        Ruselw,

        Thanks for your reply.

        I didn’t enable tracing. I checked it with svcconfigeditor tool and tracing in BTSNTSvc.exe.config file is turned off. Can there be any other reason due to which this exception can occur?

        Thank you

        • #20607

          That error makes me suspect it is a problem with the WCF or BizTalk install.  To test, I would stand up the absolute simplest WCF service possible, and write an orchestration to consume it.  If you still get the error, then it is an install problem.  If you don’t get the error, it is a bug in your code.

          • #20608

            Yes, I tried that to know the same thing and I came to know that it’s giving the same error in new project as well. So, I thought it’s a issue with WCF itself. But till a week back I was able to work with the same orchestration and not now. The only change I made was changing the password of my account which was expired. Is there any possibility that it is an issue because of that?

            • #20610

              I don’t think a password change would affect WCF, but it could affect BizTalk and SQL Server.  What accounts are BizTalk and SQL Server running under?  If they are under your account, you need to update the passwords for those services in the services console as well.

              • #20632

                Yes, I reset them and other functionalities are working as it is. Only wcf-basic http giving the above exception but I am not sure it is because of this change.

                • #20635

                  That’s a tough one…  It’s hard to say whether it would be easier to troubleshoot it, or to start reinstalling things.  I know this isn’t much help to you now, but I like to use a virtual machine for development.  That way, I can create a fully configured development image, then mark it as read only and create a differencing disk on top of it for day-to-day work.  When something gets messed up, I can just create a new differencing disk and have my environment working again in 10-15 minutes.  If you are interested in this approach, I can elaborate…

                  • #20696

                    Thanks ruselw.

                    I have a virtual machine copy of my machine. However, I have reinstalled every thing to get it worked.

                    Thanks for all your support. Let me know if you come across this any time.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.