我們一直在使用MiniProfiler作爲簡化ASP.NET MVC 5應用程序性能的簡單方法。它在dev中運行良好,但是一旦我們將應用程序放入Web場中,我們很快就意識到我們需要使用不同的/共享的存儲介質。MiniProfiler結果由於使用SqlServerStorage,UI顯示空名稱
我們通過把
MiniProfiler.Settings.Storage = new SqlServerStorage(System.Configuration.ConfigurationManager.ConnectionStrings["SqlDb"].ConnectionString)
爲MvcApplication.Application_Start
(Global.asax中)
我們使用腳本StackExchange.Profiling.Storage.SqlServerStorage.TableCreationScript
創建MiniProfiler表遷移到SqlServerStorage。
由於使用SqlServerStorage,我們發現MiniProfiler UI不再正常工作;我們得到以下內容:
正如您所看到的,名稱列是空的。任何人有任何想法,我是否需要配置別的東西?
現在有什麼解決方法嗎? –