为什么掠影仍在运行? [英] Why is Glimpse still running?

查看:150
本文介绍了为什么掠影仍在运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做一瞥defaultRuntimePolicy关闭,但它仍然显示这样的错误

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>

不应该窥探出asp.net的MVC管线使其关闭后?

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

更新:

我也评论所有的一瞥相关部分在web.config中,但我仍然得到同样的上述错误

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

推荐答案

原因是,即使你完全通过web.config中,这确保掠影不收集请求处理过程中的任何信息,仍有禁用掠影组件,如 Glimpse.Ado Glimpse.EF * ,具有 preApplicationStartMethod 属性来定义,这意味着正在制定一些挂钩,即使他们不打算做任何事情的时候请求被处理。

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.

解决方法是删除 Glimpse.EF * 装配,也许 Glimpse.Ado 装配以及从你的bin目录。

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

这篇关于为什么掠影仍在运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆