IHttpModule的行为不同在不同的服务器 [英] IHttpModule behaves differently on different servers

查看:193
本文介绍了IHttpModule的行为不同在不同的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与这两个程序开发一个应用程序,我调试code与Visual Studio 2013和Visual Studio 2010和code表现的不同。

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.

在VS 2010中,code背后已经执行,并且页面已建成之后,执行结束。在VS 2013中,页面已建成之后,它就会被解雇了另一个方法调用context_BeginRequest(对象发件人,EventArgs e)在IHttpModule的,我已经实现了。

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?

问题二:IHttpModule的通过GetVirtualPath(获取路径),然后使一个重定向它。现在的问题是:为什么是路径得到的起始页面的路径,而不是网页它目前在

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?

推荐答案

也许这是这个函数:的在Visual Studio中使用浏览器链接2013 结果
但我也没办法,SRY:/

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

这篇关于IHttpModule的行为不同在不同的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆