Discussion:
Exception from HRESULT: 0xC0C0164B
(too old to reply)
Waqar Sadiq
2008-09-26 20:43:04 UTC
Permalink
I have a customer receive adapter that wakes up from time to time, reads the
database and then publishes messages. This code use to work. I have just
created a brand new receive port and now the adapter is failing when the
messages are submitted. Following is the exception I get:

[System.Runtime.InteropServices.COMException]
{System.Runtime.InteropServices.COMException (0xC0C0164B):
Exception from HRESULT: 0xC0C0164B
at
Microsoft.BizTalk.TransportProxy.Interop.IBTTransportBatch.SubmitMessage(IBaseMessage
msg)
at
Microsoft.Samples.BizTalk.Adapter.Common.Batch.SubmitMessage(IBaseMessage
message, Object userData) in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\AdapterBase\Batch.cs:line
253
at
Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.PerformOutboundWork()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
317
at Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.EndpointTask()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
252} System.Runtime.InteropServices.COMException

As you can see, the exception occurs in Microsoft code.

Does anyone have any idea what this is all about?

Thanks.

Waqar Sadiq
IvanJo
2008-09-27 14:03:01 UTC
Permalink
Hi Waqar,

does Host Instance user that runs your receive adapter has necessary rights
in your custom database?
--
Ivan Jocic
blog: http://biztalkia.com/blogs/IvanJo
Post by Waqar Sadiq
I have a customer receive adapter that wakes up from time to time, reads the
database and then publishes messages. This code use to work. I have just
created a brand new receive port and now the adapter is failing when the
[System.Runtime.InteropServices.COMException]
Exception from HRESULT: 0xC0C0164B
at
Microsoft.BizTalk.TransportProxy.Interop.IBTTransportBatch.SubmitMessage(IBaseMessage
msg)
at
Microsoft.Samples.BizTalk.Adapter.Common.Batch.SubmitMessage(IBaseMessage
message, Object userData) in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\AdapterBase\Batch.cs:line
253
at
Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.PerformOutboundWork()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
317
at Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.EndpointTask()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
252} System.Runtime.InteropServices.COMException
As you can see, the exception occurs in Microsoft code.
Does anyone have any idea what this is all about?
Thanks.
Waqar Sadiq
Waqar Sadiq
2008-09-29 11:45:48 UTC
Permalink
I actually found the problem to be a bug in my adapter code. In my adapter,
where I was creatign the message to be submitted, The
context.InboundTransportLocation was set to a uri value that did not match
the uri of the adapter. Once I fixed that, everything was fine.
Post by IvanJo
Hi Waqar,
does Host Instance user that runs your receive adapter has necessary rights
in your custom database?
--
Ivan Jocic
blog: http://biztalkia.com/blogs/IvanJo
Post by Waqar Sadiq
I have a customer receive adapter that wakes up from time to time, reads the
database and then publishes messages. This code use to work. I have just
created a brand new receive port and now the adapter is failing when the
[System.Runtime.InteropServices.COMException]
Exception from HRESULT: 0xC0C0164B
at
Microsoft.BizTalk.TransportProxy.Interop.IBTTransportBatch.SubmitMessage(IBaseMessage
msg)
at
Microsoft.Samples.BizTalk.Adapter.Common.Batch.SubmitMessage(IBaseMessage
message, Object userData) in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\AdapterBase\Batch.cs:line
253
at
Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.PerformOutboundWork()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
317
at
Brierley.BizTalkAdapter.Runtime.JanusReceiverWorkerJob.EndpointTask()
in
C:\ProductDevelopment\LoyaltyWare\Main\Brierley.BizTalkAdapter\Brierley.BizTalkAdapter.Runtime\JanusReceiverWorkerJob.cs:line
252} System.Runtime.InteropServices.COMException
As you can see, the exception occurs in Microsoft code.
Does anyone have any idea what this is all about?
Thanks.
Waqar Sadiq
Loading...