爲了獲得我們的MVC4應用程序(使用WebRole for Microsoft Azure)的診斷,我們通過NuGet安裝了Glimpse。啓用掠影導致「頁面不可用」
一切都很順利,但是當我通過~/Glimpse.axd
頁面啓用Glimpse時,我們的應用程序完全無法訪問。在每次請求時,我們都會收到「此網頁不可用」消息(Chrome)。
在Visual Studio 2013輸出窗口,我看到這表明通過web.config
禁用異步支持的錯誤消息:
<appSettings>
<add key="Glimpse:DisableAsyncSupport" value="true"/>
</appSettings>
不幸的是這並沒有幫助。當我們關閉Glimpse時,一切都很好。
如何找出問題所在?
更新
日誌顯示我這樣的警告:
WARN | Unable to locate '</body>' with content encoding 'Unicode (UTF-8)' for request. The response may be compressed or the markup may actually be missing a '</body>' tag.