M
MarcoB
I am trying to use Microsoft Distributed Processing and I am getting the
following error.
"There is no MTS objectcontext " I have SQL MSDTC loaded on my PC.
I have added the code below:
Any ideas ?? Tks.
------------------------------------
Imports System.EnterpriseServices
<Transaction(TransactionOption.Required)> _
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
ExecInTran()
End Sub
Public Function ExecInTran() As Boolean
Dim queueA As New MessageQueue()
Try
'step1: Do step DB stuff
'step2: DO MSMQ stuff
ContextUtil.SetComplete()
Return True
Catch ex As Exception
ContextUtil.SetAbort()
Return False
Finally
queueA.Close()
End Try
End Function
End Class
following error.
"There is no MTS objectcontext " I have SQL MSDTC loaded on my PC.
I have added the code below:
Any ideas ?? Tks.
------------------------------------
Imports System.EnterpriseServices
<Transaction(TransactionOption.Required)> _
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
ExecInTran()
End Sub
Public Function ExecInTran() As Boolean
Dim queueA As New MessageQueue()
Try
'step1: Do step DB stuff
'step2: DO MSMQ stuff
ContextUtil.SetComplete()
Return True
Catch ex As Exception
ContextUtil.SetAbort()
Return False
Finally
queueA.Close()
End Try
End Function
End Class