Glimpse没有记录Nhibernate查询(mvc3)

时间:2013-07-26 09:54:40

标签: nhibernate glimpse

我已经在我的视觉工作室环境中安装了一瞥。 一切正常,除了nhibernate ......

这就是我通过工厂的方式:

factory = configuration.BuildSessionFactory();
NHibernate.Glimpse.Plugin.RegisterSessionFactory(factory);

这是我在网络配置中的相关部分:

<configuration>
  <configSections>
    <section name="glimpse" type="Glimpse.Core.Configuration.Section, Glimpse.Core" />
  </configSections>
  <appSettings>
    <add key="nhibernate-logger" value="NHibernate.Glimpse.LoggerFactory, NHibernate.Glimpse" />
    <add key="NHibernate.Glimpse.Loggers" value="command" />
  </appSettings>
  <system.web>

    <!-- Glimpse: This can be commented in to add additional data to the Trace tab when using WebForms
        <trace writeToDiagnosticsTrace="true" enabled="true" pageOutput="false"/> -->
    <httpModules>
      <add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" />
    </httpModules>
    <httpHandlers>
      <add path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" preCondition="integratedMode" />
    </modules>
    <handlers>
      <add name="Glimpse" path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" preCondition="integratedMode" />
    </handlers>
  </system.webServer>

  <glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">

  </glimpse>
</configuration>

有什么想法吗? 感谢

1 个答案:

答案 0 :(得分:1)

您安装了NHibernate.Glimpse NuGet package吗?

Glimpse.Ado NuGet package仅在与DbProviderFactory

结合使用时才添加ADO分析