WebResource.axd的工作不与Internet Explorer 11 [英] WebResource.axd not working with Internet Explorer 11
问题描述
我们正在测试我们的网站,新的Windows 8.1的IE浏览器11的经典和地铁。
有一个 Javascript的
嵌入 WebResource.axd的
文件。
该 WebResource
生成和加载罚款火狐,谷歌Chrome和IE 11的网站添加在兼容性视图。
唯一的问题是IE 11既经典又其中 WebResource
未加载地铁。
我不是寻求precise的答案,但有什么困惑我的是,
我无法看到 WebResource
<脚本>
在生成的HTML标签。无论是我可以看到这是一种隐性的资源提出的任何要求。
现在的问题是,其中可能是这个问题,我调试我的code,但没有找到它没有任何自定义处理程序或模块。
难道没有在IIS处理程序(AssemblyResourceLoader集成的),或在在您注册的生成逻辑的 WebResource
?
We're testing our websites for the new Windows 8.1 IE 11 browsers classic and metro.
There is a Javascript
file embedded in WebResource.axd
.
The WebResource
is generated and loaded fine with Firefox,Google Chrome and IE 11 with the site added in Compatibility View.
The only issue is IE 11 both classic and metro where the WebResource
is not loaded.
I am not seeking a precise answer but what confuses me is ,
I can't see the WebResource
<script>
tag in the generated HTML. Neither can I see any request made for the resource which is kind of implicit.
Now my question is where could be the issue , I debugged my code and couldn't find it failing in any of the custom handlers or modules.
Is it failing in IIS handlers (AssemblyResourceLoader-Integrated) or at the generation logic where you register the WebResource
?
推荐答案
理查德的解决方法上面:
Richard's workaround above:
设置 Page.ClientTarget =uplevel
在 Page_Init
事件。
是正确的;你需要禁止使用用户代理嗅探得到ASPNET送IE11合适的脚本块。 http://msdn.microsoft.com/en -us /库/ system.web.ui.page.clienttarget.aspx
is the correct one; you need to disable the use of User-Agent sniffing to get ASPNET to send IE11 the proper script blocks. http://msdn.microsoft.com/en-us/library/system.web.ui.page.clienttarget.aspx
不幸的是,事实证明,他们采取了启用IE10补丁不能正常使用IE11工作(因为IE团队显著改变了IE浏览器的用户代理字符串,删除了MSIE令牌默认情况下)。因此,另外一个补丁用于ASP.NET被运在2013年6月见 http://stackoverflow.com/a/18651133/126229一>
Unfortunately, it turns out that the patch they took to enable IE10 doesn't work properly with IE11 (because the IE team significantly changed the IE user agent string, removing the MSIE token by default). So, another patch for ASP.NET was shipped in June 2013. See http://stackoverflow.com/a/18651133/126229
这篇关于WebResource.axd的工作不与Internet Explorer 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!