The type 'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=f9c52cf85a46e229'.

解决方案 »

  1.   

    #region Using directives 
     
    using System; 
    using System.ComponentModel; 
    using System.Collections.Generic; 
    using System.Diagnostics; 
    using System.Xml.Serialization; 
     
    using System.Data; 
    using System.Data.Common; 
    using Microsoft.Practices.EnterpriseLibrary.Data; 
    using Microsoft.Practices.EnterpriseLibrary.Data.Configuration; 
    using Microsoft.Practices.EnterpriseLibrary.Logging; 
    using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; 
     
    #endregion
      

  2.   

    提示还不够清楚啊...你必须引用程序集Microsoft.Practices.EnterpriseLibrary.Common...
      

  3.   

    添加引用Microsoft.Practices.EnterpriseLibrary.Common..
      

  4.   

    Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
      

  5.   

    第一个问题有可能是DLL hell
      

  6.   

    不能加载此DLL
    解决方案里 右键 引用吧直接手动添加有问题
      

  7.   

    communication with the underlying transaction manager has failed,,郁闷,已经打开MSDTC了。还是报这个错。。
      

  8.   

    将'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=f9c52cf85a46e229'
    改为'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture='就可以了。。
      

  9.   

    将'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=f9c52cf85a46e229'
    改为'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral'就可以了。。