FailedNo error information available: E_NOINTERFACE(0x80004002).
来源:互联网 发布:jquery.carousel.js 编辑:程序博客网 时间:2024/04/29 07:33
用COM+ 的自动事务,必须操作的对象支持,用access 调用dtc,会有莫名其妙的错误代码
FailedNo error information available: E_NOINTERFACE(0x80004002).
关于这个问题,微软有一片kb
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q221071&
<WebMethod(transactionOption:=EnterpriseServices.TransactionOption.RequiresNew)> _
Public Function HelloWorld() As String
Try
ContextUtil.EnableCommit()
DrawMoneyFromA(1000)
DepostMoneyToB(1000)
ContextUtil.SetComplete()
Return "OK!"
Catch ex As Exception
ContextUtil.SetAbort()
Return "Failed" + ex.Message
End Try
End Function
Public Sub DrawMoneyFromA(ByVal amount As Long)
'从 A 中提取一定的钱
Dim cnn As New OleDb.OleDbConnection(Me.OleDbConnection1.ConnectionString)
cnn.Open()
Dim cmd As New OleDb.OleDbCommand("Update bank set amount=amount - " & amount & " where bankaccount='A'", cnn)
cmd.ExecuteNonQuery()
End Sub
Public Sub DepostMoneyToB(ByVal amount As Long)
'从 B 加一定的钱
Dim cnn As New OleDb.OleDbConnection(Me.OleDbConnection1.ConnectionString)
cnn.Open()
Dim cmd As New OleDb.OleDbCommand("Update bank set amount=amount + " & amount & " where bankaccount='B'", cnn)
'Throw New Exception("ff")
cmd.ExecuteNonQuery()
End Sub
- FailedNo error information available: E_NOINTERFACE(0x80004002).
- VirtuaBox E_NOINTERFACE (0x80004002)的可能原因
- 被召者 RC: E_NOINTERFACE (0x80004002) 无法运行virtualBox的完善解决办法
- 被召者 RC: E_NOINTERFACE (0x80004002) 无法运行virtualBox的完善解决
- C++ error "intellisense information will not be available for vc++"
- ado 0x80004002
- ado 0x80004002
- no version information available
- no version information available
- C++ error "intellisense information will not be available for vc++" 2011.06.13
- Database transaction information not available
- windows7安装chrome错误0x80004002
- VirtualBox安装问题--错误码0x80004002
- ccmake: /root/anaconda2/lib/libcrypto.so.1.0.0: no version information available
- VS2010 no additional information available troubleshooting intellisense
- 碰到no version information available问题
- Keil 出现No Browse information available
- PeopleSoft Error Information - 1
- 如何解决 SQL Server 2000 中的连接问题
- LINUX--a free unix-386 kernel
- Chain of Responsibility
- Command
- 一个毕业生毕业前的几点思考!
- FailedNo error information available: E_NOINTERFACE(0x80004002).
- 报个到
- VB源码之友终于开发完毕了
- 香港的户外店
- STUDY olereader
- 回忆那年那月(1997~2003)起篇---高复班的残余
- 招聘网址大全!中英文简历模板!
- 面向对象技术文章集锦(不断更新)
- Running applications from DelphiTM: Using ShellExecute (Part 1) {转贴}