2013-07-23 57 views
0

我是Glimpse的新手。我的設置:MVC4,EF5,VS 2012,.NET 4.5。Glimpse.MVC4 1.3.2標籤沒有顯示

我使用包管理器控制檯安裝了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. 

我可以看到瀏覽器上的一瞥圖標,我可以看到數據以下標籤:

  • 配置
  • 環境
  • 請求
  • 路線
  • SQL
  • 服務器
  • 會議
  • 時間軸
  • 跟蹤

但有關MVC4任何標籤缺失。

  • 執行
  • 模型綁定
  • 查看

,我一直試圖解決這個問題,但失敗了的東西。

  • 使用@ Html.GlimpseClient(),因爲我是越來越沒有發現如在日誌中看到的嘗試,但它並沒有幫助。即使在發生此錯誤時,我也能看到Glimpse圖標和其他選項卡。

  • 我沒有任何自定義模型綁定器,它只是一個常規的MVC4 web項目。所以我不修復自定義模型聯編程序將工作。我可能錯了。

  • 清除「臨時asp.net文件」,現在在上面的「Registered Packages:」列表中,我看到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

你可以檢查一下,如果你將'BuildManager.GetReferencedAssemblies()'添加到你的Global.asax中的Application_Start方法中,問題就解決了嗎?因爲如果是這樣,那麼你可能會有相同的問題,如[這裏]所述(http://stackoverflow.com/questions/17706748/glimpse-mvc3-dll-being-forgotten-as-part-of-application-pool-回收),這將在下一版Glimpse中解決。 – cgijbels

+0

謝謝@cgijbels。很酷,那就是訣竅。添加BuildManager.GetReferencedAssemblies()工作!真棒。 – libragopi

+0

如何將@cgijbels答案標記爲正確? – libragopi

回答

0

顯然,它是作爲提到here

同樣的問題,所以解決方法,直到一瞥的下一個版本中包含的修復,是通過增加BuildManager.GetReferencedAssemblies()到的Application_Start方法內全球。asax