Glimpse.MVC4 1.3.2选项卡未显示

时间:2013-07-23 09:30:19

标签: debugging asp.net-mvc-4 glimpse

我是Glimpse的新手。我的设置:MVC4,EF5,VS 2012,.NET 4.5。

我使用Package Manager控制台安装了Glimpse。输出:

PM> Install-Package Glimpse
Successfully installed 'Glimpse 1.5.0'.
Successfully added 'Glimpse 1.5.0' to MyProject.Web.

PM> Install-Package Glimpse.AspNet
Attempting to resolve dependency 'Glimpse (= 1.4.2)'.
Successfully installed 'Glimpse.AspNet 1.3.1'.
Successfully added 'Glimpse.AspNet 1.3.1' to MyProject.Web.

PM> Install-Package Glimpse.Mvc4
Attempting to resolve dependency 'Glimpse.AspNet (= 1.3.0)'.
Attempting to resolve dependency 'Glimpse (= 1.4.2)'.
Successfully installed 'Glimpse.Mvc4 1.3.2'.
Successfully added 'Glimpse.Mvc4 1.3.2' to MyProject.Web.

PM> Install-Package Glimpse.Ado
Attempting to resolve dependency 'Glimpse (= 1.4.0)'.
Successfully installed 'Glimpse.Ado 1.4.1'.
Successfully added 'Glimpse.Ado 1.4.1' to MyProject.Web.

PM> Install-Package Glimpse.EF5
Attempting to resolve dependency 'Glimpse.Ado (= 1.4.1)'.
Attempting to resolve dependency 'Glimpse (= 1.4.0)'.
Successfully installed 'Glimpse.EF5 1.3.1'.
Successfully added 'Glimpse.EF5 1.3.1' to MyProject.Web.

浏览:

http://localhost/glimpse.axd

给出了这个结果:

Registered Tabs:
 Glimpse.Ado (1.4.1)
  SQL - Glimpse.Ado.Tab.SQL - EndRequest
 Glimpse.AspNet (1.3.1)
  Configuration - Glimpse.AspNet.Tab.Configuration - EndRequest
  Environment - Glimpse.AspNet.Tab.Environment - EndRequest
  Request - Glimpse.AspNet.Tab.Request - EndRequest
  Routes - Glimpse.AspNet.Tab.Routes - EndRequest
  Server - Glimpse.AspNet.Tab.Server - EndRequest
  Session - Glimpse.AspNet.Tab.Session - EndSessionAccess
 Glimpse (1.5.0)
  Timeline - Glimpse.Core.Tab.Timeline - EndRequest
  Trace - Glimpse.Core.Tab.Trace - EndRequest

Runtime Policies:
 Glimpse.AspNet (1.3.1)
  Glimpse.AspNet.Policy.LocalPolicy - BeginRequest *This policy means that Glimpse won't run remotely.*
 Glimpse (1.5.0)
  Glimpse.Core.Policy.AjaxPolicy - BeginRequest
  Glimpse.Core.Policy.ContentTypePolicy - EndRequest
  Glimpse.Core.Policy.ControlCookiePolicy - BeginRequest
  Glimpse.Core.Policy.GlimpseResourcePolicy - ExecuteResource
  Glimpse.Core.Policy.StatusCodePolicy - EndRequest
  Glimpse.Core.Policy.UriPolicy - BeginRequest

Detailed Settings:

Inspectors:
 Glimpse.Ado (1.4.1)
  Glimpse.Ado.Inspector.AdoInspector
 Glimpse.AspNet (1.3.1)
  Glimpse.AspNet.Inspector.RoutesInspector
 Glimpse (1.5.0)
  Glimpse.Core.Inspector.TraceInspector
 Glimpse.EF5 (1.3.1)
  Glimpse.EF.Inspector.EntityFrameworkInspector

Resources:
 Glimpse (1.5.0)
  glimpse_ajax - Glimpse.Core.Resource.AjaxResource - parentRequestId (True), hash (False), callback (False)
  glimpse_client - Glimpse.Core.Resource.ClientResource - hash (False)
  glimpse_config - Glimpse.Core.Resource.ConfigurationResource -
  glimpse_history - Glimpse.Core.Resource.HistoryResource - top (False), hash (False)
  glimpse_logo - Glimpse.Core.Resource.LogoResource - hash (False)
  glimpse_metadata - Glimpse.Core.Resource.MetadataResource - hash (False), callback (False)
  glimpse_popup - Glimpse.Core.Resource.PopupResource - requestId (True), hash (False)
  glimpse_request - Glimpse.Core.Resource.RequestResource - requestId (True), hash (False), callback (False)
  glimpse_sprite - Glimpse.Core.Resource.SpriteResource - hash (False)
  glimpse_version_check - Glimpse.Core.Resource.VersionCheckResource - hash (False), stamp (True), callback (False)

Client Scripts:
 Glimpse (1.5.0)
  Glimpse.Core.ClientScript.Client - ClientInterfaceScript
  Glimpse.Core.ClientScript.Data - RequestDataScript
  Glimpse.Core.ClientScript.Metadata - RequestMetadataScript

Framework Provider: Glimpse.AspNet.AspNetFrameworkProvider
Html Encoder: Glimpse.Core.Extensibility.AntiXssEncoder
Logger: Glimpse.Core.Extensibility.NLogLogger
Persistence Store: Glimpse.Core.Framework.ApplicationPersistenceStore
Resource Endpoint: Glimpse.AspNet.HttpHandlerEndpointConfiguration
Serializer: Glimpse.Core.Extensibility.JsonNetSerializer
Default Resource: Glimpse.Core.Resource.ConfigurationResource - glimpse_config
Default Runtime Policy: Glimpse.Core.Extensibility.RuntimePolicy
Proxy Factory: Glimpse.Core.Framework.CastleDynamicProxyFactory
Message Broker: Glimpse.Core.Extensibility.MessageBroker
Endpoint Base Uri: ~/Glimpse.axd


Registered Packages:

NOTE, doesn't represent all the glimpse dependent Nuget packages you have installed, just the ones that have registered as a Glimpse Nuget package

Glimpse.Ado - 1.4.1
Glimpse.EF5 - 1.3.1
Glimpse - 1.5.0
Glimpse.AspNet - 1.3.1
Glimpse.Mvc4 - 1.3.2 <--- was missing earlier, but after clearing 
                          temporary asp.net files, this appeared.

我可以在浏览器上看到Glimpse图标,我可以看到以下带有数据的标签:

  • 配置
  • 环境
  • 请求
  • 路线
  • SQL
  • 服务器
  • 会话
  • 时间轴
  • 微量

但是缺少与MVC4相关的任何标签。

  • 执行
  • 模型绑定
  • 元数据
  • 浏览

我试图解决这个问题,但失败了。

  • 尝试使用@ Html.GlimpseClient(),因为我在日志中看不到,但它没有帮助。即使我收到此错误,我也能看到Glimpse图标和其他标签。

  • 我没有任何自定义模型绑定器,它只是一个常规的MVC4 Web项目。所以我不修复自定义模型绑定器的工作。我可能错了。

  • 清除“临时asp.net文件”,现在在上面的“已注册的软件包:”列表中,我看到了Glimpse.Mvc4 - 1.3.2。佛拉!但是,我仍然没有看到与MVC相关的标签。

现在被困在这里。我非常喜欢其他标签中的数据,但也很想获得MVC标签。

一瞥日志:

2013-07-23 02:23:50.2773 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:23:59.0328 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:24:07.2382 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:24:26.9564 | WARN | Unable to locate '</body>' with content encoding 'Unicode (UTF-8)'. Response may be compressed. | 
2013-07-23 02:24:27.4934 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:24:41.8112 | DEBUG | RuntimePolicy set to 'ModifyResponseHeaders' by IRuntimePolicy of type 'Glimpse.Core.Policy.AjaxPolicy' during RuntimeEvent 'BeginRequest'. | 
2013-07-23 02:24:42.7413 | DEBUG | RuntimePolicy set to 'ModifyResponseHeaders' by IRuntimePolicy of type 'Glimpse.Core.Policy.AjaxPolicy' during RuntimeEvent 'BeginRequest'. | 
2013-07-23 02:24:55.0730 | DEBUG | RuntimePolicy set to 'ModifyResponseHeaders' by IRuntimePolicy of type 'Glimpse.Core.Policy.AjaxPolicy' during RuntimeEvent 'BeginRequest'. | 
2013-07-23 02:24:59.2632 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:25:07.2067 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:25:12.0079 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:25:15.0111 | DEBUG | RuntimePolicy set to 'Off' by IRuntimePolicy of type 'Glimpse.Core.Policy.ContentTypePolicy' during RuntimeEvent 'EndRequest'. | 
2013-07-23 02:25:15.0111 | DEBUG | RuntimePolicy set to 'Off' by IRuntimePolicy of type 'Glimpse.Core.Policy.ContentTypePolicy' during RuntimeEvent 'EndRequest'. | 
2013-07-23 02:25:15.1161 | DEBUG | RuntimePolicy set to 'Off' by IRuntimePolicy of type 'Glimpse.Core.Policy.ContentTypePolicy' during RuntimeEvent 'EndRequest'. | 
2013-07-23 02:25:15.3461 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 
2013-07-23 02:25:19.7284 | DEBUG | RuntimePolicy set to 'ExecuteResourceOnly' by IRuntimePolicy of type 'Glimpse.Core.Policy.GlimpseResourcePolicy' during RuntimeEvent 'ExecuteResource'. | 

1 个答案:

答案 0 :(得分:0)

显然这与提到here

的问题相同

因此,在下一版本的Glimpse包含修复程序之前,解决方法是将BuildManager.GetReferencedAssemblies()添加到Global.asax中的Application_Start方法