问题描述
您好我已经使用c#在.net中创建了Windows应用程序,我的应用程序在 Windows XP和Windows 7 中运行完美但是当我尝试在 Windows Server 2003中执行该应用程序时然后在打开ms访问数据库的连接时出现错误,如下所示:
'System.Transactions.Diagnostics.DiagnosticTrace'的类型初始化程序一个例外。
在System.Transactions.Transaction.get_Current()
在System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
at System.Data.Common.ADP.NeedManualEnlistment()
at System.Data.OleDb.OleDbConnection.Open()
at Com.Xpdite.CC .Utils.DbConnection.getConnection()
所以任何人都能为我提供这个问题的解决方案。
请帮我摆脱这个问题......
Hi i have created windows application in .net with c# and my application running perfectly in Windows XP and Windows 7 but when i try to execute that application in Windows Server 2003 then it getting error at opening connection of ms access database which is specify below:
The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception.
at System.Transactions.Transaction.get_Current()
at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
at System.Data.Common.ADP.NeedManualEnlistment()
at System.Data.OleDb.OleDbConnection.Open()
at Com.Xpdite.CC.Utils.DbConnection.getConnection()
so can any one provide me the solutions for this problem.
Please help me to get out from this problem...
推荐答案
这篇关于C#.Net Windows应用程序无法在Windows Server 2003中打开MS Access数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!