Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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...
Posted
Comments
manognya kota 6-Sep-12 5:17am    
What is the database that you are using?

Hi,

I had a similar problem.I removed the configsection from the app.config and it worked.
Not sure whether this can work out here.
 
Share this answer
 
Hi Ankit,

I resolved this issue by placing the config sections on top next to configuration tag in app.config file.

thanks
Sankarsai Mohandas
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900