[英]How to avoid `Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider` is not referenced?
In my mvc3 project when it start Debugging it always shows this error message. 在我的mvc3项目中,当它开始调试时,它总是显示此错误消息。
The type 'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider' is defined in an assembly that is not referenced.
在未引用的程序集中定义了“ Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider”类型。 You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
您必须添加对程序集'Microsoft.Practices.EnterpriseLibrary.Common,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'的引用。
I install microsoft.practices.enterpriselibrary.common.dll this file also.But it shows that error again and again. 我也安装了microsoft.practices.enterpriselibrary.common.dll这个文件。但是它一次又一次地显示该错误。
How can i slove this problem?Any idea? 我该如何解决这个问题?
Did you ensure that you have the right version of the Enterprise library. 您是否确保拥有正确版本的企业库。 If you have installed enterprise library of other version, you may get this kind of exception.
如果您安装了其他版本的企业库,则可能会出现这种异常。
Also check in the References
of your application to ensure that the reference is in place. 在同时检查
References
您的应用程序,以确保参考到位。
Also, try to clean up the Temporary ASP.Net files
and then clean and rebuild the solution and post the update. 此外,请尝试清理
Temporary ASP.Net files
,然后清理并重建解决方案并发布更新。
I had a similar issue.. 我有一个类似的问题。
I replaced with proper dll files but during compile time, it was throwing error. 我用适当的dll文件替换了,但是在编译时,它抛出了错误。
Finally, I figured out.. I had to delete all the reference dll files that were part of enterprise library and added them again. 最后,我弄清楚了..我必须删除企业库中所有的参考dll文件,然后再次添加它们。 After doing this, it worked.
完成此操作后,它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.