The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception. this is the Exception im getting while im fetching records from excel file
help me to solve thiz

Recommended Answers

All 6 Replies

thank u
but i solved it just now by the same method

How did you solve it. Never heard of that kind of exception?

Hi Arjun,

It is :
By Deleting the Config.app & rebuilding the project


Yes your correct!. Baskar just mailed me about it.

I too had the same error. Instead of deleting App.Config file, I looked into it. There was an error in the App.Config file. Upon correcting this error it worked fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.