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'.
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
解决方案里 右键 引用吧直接手动添加有问题
改为'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture='就可以了。。
改为'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral'就可以了。。