Why is Glimpse still running?

戏子无情 提交于 2019-12-01 09:40:33

问题


I made glimpse defaultRuntimePolicy Off but it still shows an error like this

Unable to define EFProfiledDbProviderServices class of type 'GlimpseDbProviderServices'. Please check that your web.config defines a <DbProviderFactories> section underneath <system.data>

shouldn't glimpse be out of asp.net mvc pipeline after making it off?

Update :

I also commented all the glimpse related part in web.config but I still get the same above error


回答1:


The reason is that even when you disable Glimpse completely through the web.config, which makes sure Glimpse is not collecting any information during request processing, that there are still assemblies, like Glimpse.Ado and Glimpse.EF*, that have a PreApplicationStartMethod attribute defined, which means that some hooks are being put in place, even though they are not going to do anything when requests are being processed.

The solution is to remove the Glimpse.EF* assembly, and maybe the Glimpse.Ado assembly as well, from you bin directory.



来源:https://stackoverflow.com/questions/23601378/why-is-glimpse-still-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!