简体   繁体   English

如何避免不引用“ Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider”?

[英]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.

相关问题 “ Microsoft.Practices.EnterpriseLibrary.Caching.Cache”在未引用的程序集中定义 - 'Microsoft.Practices.EnterpriseLibrary.Caching.Cache' is defined in an assembly that is not referenced 无法在WCF中加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Common - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common in WCF AppDomain AssemblyResolve事件请求Microsoft.Practices.EnterpriseLibrary.Common.resources - AppDomain AssemblyResolve Event asks for Microsoft.Practices.EnterpriseLibrary.Common.resources Microsoft.Practices.EnterpriseLibrary.* 的替代品 - Alternatives to Microsoft.Practices.EnterpriseLibrary.* 如何模拟 Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.CryptographyManager - How to Mock Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.CryptographyManager '您必须添加对Microsoft.Practices.EnterpriseLibrary.Common的引用',即使汇编在GAC中 - 'You must add a reference to Microsoft.Practices.EnterpriseLibrary.Common' even though assembly is in the GAC 无法解决此参考。 无法找到程序集“ Microsoft.Practices.EnterpriseLibrary.Common” - Could not resolve this reference. Could not locate the assembly “Microsoft.Practices.EnterpriseLibrary.Common” Microsoft.Practices.EnterpriseLibrary.Common在IIS 8.5中不起作用,但它在IIS 7.0中工作 - Microsoft.Practices.EnterpriseLibrary.Common is not working in IIS 8.5 but its working in IIS 7.0 无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Common”或其依赖项之一 - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies 什么是 Microsoft.Practices.EnterpriseLibrary.Data - what is Microsoft.Practices.EnterpriseLibrary.Data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM