博客生活 联系 聚合 管理  

Blog Stats

文章分类

文章档案


   System.TypeInitializationException was unhandled
  Message="The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception."
  Source="System.Transactions"
  TypeName="System.Transactions.Diagnostics.DiagnosticTrace"

  The problem was that in the app.config, there is the <configsections> element. There should be only one instance of this element. If there is only one, then it should be the first element in <Configuration>.

If you don't use the SettingsManager class, it doesn't cause a problem.
posted on 2008-11-04 16:07 Gil 阅读(320) 评论(0)  编辑  收藏 所属分类: C#

只有注册用户登录后才能发表评论。
网站导航: