问题描述
Hi, 我有一个函数来获取ole数据库中表的列属性。奇怪的是该程序在VS2008中成功运行,但是在我构建并在Windows中运行它之后,它给了我异常"System.Transactions.Diagnostics.DiagnosticTrace的类型初始化器"引发了异常"。我在互联网上查找了这个异常,他们建议删除app.config和重建应用程序,但是我没有为这个程序创建app.config。所以我输了.. I have a function to obtain column properties of a table in ole database. Strange thing is that the program ran successfully within VS2008, but after I built and run it in windows, it gives me exception "The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception". I looked for this exception in internet, and they suggest delete app.config and rebuilt application, but I didn't create a app.config for this program. So I lost.. 任何人都可以帮忙吗?以下是我的代码。 Can anyone help? Following is my code.
推荐答案
这篇关于在Exception上需要帮助“System.Transactions.Diagnostics.DiagnosticTrace的类型初始化程序”引发了异常“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!