IHttpModule behaves differently on different servers

安稳与你 提交于 2019-12-24 03:42:54

问题


I'm developing an application and I'm debugging the code with Visual Studio 2013 and Visual Studio 2010 and the code behaves differently with the two programs.

In VS 2010, after the code behind has been executed and the page has been built, the execution ends. In VS 2013, after the page has been built, it gets fired another call to the method context_BeginRequest(object sender, EventArgs e) in IHttpModule, which I have implemented.

First problem is: why is there this additional call?

Second problem: the IHttpModule gets the path through GetVirtualPath(), and then makes a redirection with it. The problem is: why is the path got the path of the starting page and not the page it is currently in?


回答1:


Perhaps it's this function: Using Browser Link in Visual Studio 2013
but i have no idea, sry :/



来源:https://stackoverflow.com/questions/27149387/ihttpmodule-behaves-differently-on-different-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!