首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Glimpse在本地工作,但未部署到Azure

Glimpse在本地工作,但未部署到Azure
EN

Stack Overflow用户
提问于 2012-09-26 02:31:47
回答 1查看 452关注 0票数 1

在本地,映射到IIS中的虚拟目录,一切工作正常。当我将站点部署到Azure时,我仍然可以访问Glimpse.axd并设置cookie (报告的IP在允许的列表中),但Glimpse图标不会显示在任何页面上。

浏览器没有报告javascript错误。检查页面源代码,这两个javascript include文件本应注入到页面的正文末尾却没有被发送。

在web.config中设置loggingEnabled="true"会在本地生成相同的日志,其工作方式与在Azure上相同,但无法工作(虚拟目录和requestId除外)。在Azure日志中:

代码语言:javascript
复制
2012-09-25 17:54:13.0271|INFO|Glimpse.Core.Module|BeginRequest handling complete for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|
2012-09-25 17:54:13.1571|WARN|Glimpse.Mvc3.Plugin.Execution|get_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:13.1571|WARN|Glimpse.Mvc3.Plugin.Execution|set_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:13.1571|WARN|Glimpse.Mvc3.Plugin.Execution|GetType method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:13.1571|WARN|Glimpse.Mvc3.Plugin.Execution|MemberwiseClone method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:28.5420|WARN|Glimpse.Mvc3.Plugin.Execution|get_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:28.5420|WARN|Glimpse.Mvc3.Plugin.Execution|set_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:28.5420|WARN|Glimpse.Mvc3.Plugin.Execution|GetType method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:28.5420|WARN|Glimpse.Mvc3.Plugin.Execution|MemberwiseClone method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5812|WARN|Glimpse.Mvc3.Plugin.Execution|get_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5812|WARN|Glimpse.Mvc3.Plugin.Execution|set_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5812|WARN|Glimpse.Mvc3.Plugin.Execution|GetType method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5831|WARN|Glimpse.Mvc3.Plugin.Execution|MemberwiseClone method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5831|WARN|Glimpse.Mvc3.Plugin.Execution|get_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5831|WARN|Glimpse.Mvc3.Plugin.Execution|set_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5831|WARN|Glimpse.Mvc3.Plugin.Execution|GetType method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5831|WARN|Glimpse.Mvc3.Plugin.Execution|MemberwiseClone method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5988|WARN|Glimpse.Mvc3.Plugin.Execution|get_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5988|WARN|Glimpse.Mvc3.Plugin.Execution|set_Binders method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5988|WARN|Glimpse.Mvc3.Plugin.Execution|GetType method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.5988|WARN|Glimpse.Mvc3.Plugin.Execution|MemberwiseClone method of System.Web.Mvc.ControllerActionInvoker type is not proxyable.|
2012-09-25 17:54:30.7874|INFO|Glimpse.Core.Module|PostRequestHandlerExecute handling complete for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|
2012-09-25 17:54:30.8978|INFO|Glimpse.Core.Module|PostReleaseRequestState handling complete for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|
2012-09-25 17:54:31.0277|INFO|Glimpse.Core.Module|Glimpse JSON payload created for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|
2012-09-25 17:54:31.1411|INFO|Glimpse.Core.Module|Glimpse output generated for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|
2012-09-25 17:54:31.1411|INFO|Glimpse.Core.Module|RequestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart) persisted|
2012-09-25 17:54:31.1411|INFO|Glimpse.Core.Module|EndRequest handling complete for requestId 4da70989-d89b-46ef-80c6-43bd6f5a7ce1 (/cart)|

我在开发中成功地使用了Glimpse,并在去年部署到了Azure上的测试服务器上。从那时到现在,我一直没有使用它的需要。项目中发生了很多变化,但这仍然是一年前有效的解决方案。我只是想找出一个目前只在Azure中出现的问题。

有什么建议可以让我从哪里开始找呢?我使用的是MVC3和.NET 4.0,Glimse0.87

EN

回答 1

Stack Overflow用户

发布于 2012-12-13 08:03:33

我敢打赌,您在Azure中配置的IP地址不是web.config基础设施通过的实际IP地址。

好消息是,我们已经从Glimse1.0候选版本中删除了IP过滤功能,该候选版本目前是NuGet上的预发行包。

如果升级后仍有问题,请在Glimpse's GitHub issue tracker上提交错误报告。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12589010

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档