ASP.NET 4 UpdatePanel 和 IIS7 问题
我有一个 ASP.NET 4 网页,其中包含一个更新面板,该面板仅允许我向下拉列表中添加一些项目,而无需重新加载整个页面。
该页面在 Visual Studio 2010 ASP.NET 开发服务器上运行良好,执行异步调用并且页面布局正确。但是,当我将页面部署到 IIS7 时,异步调用不再起作用(页面完全重新加载)并且页面上某些项目的布局不正确。
我使用 Fiddler 来查看发生的情况,当页面尝试访问 ScriptResource.axd 时,似乎出现了 404,而其他一切都正常工作。我认为这与调用所需的 JavaScript 有关,但我不知道如何修复它。有什么建议吗?
I have an ASP.NET 4 webpage that contains an update panel which just allows me to add a few items to a drop down list without reloading the entire page.
The page works fine on the Visual Studio 2010 ASP.NET Development Server, performs the Async call and the page is properly laid out. However, when I deploy the page to IIS7, the Async call no longer works (the page is completely reloaded) and the layout of some items on the page is incorrect.
I used Fiddler to look at what's happening and it looks like there are 404's when the page tries to access ScriptResource.axd, with everything else working correctly. I think that has to do with the Javascript required for the call but I'm not sure how to fix it. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题。阅读后,这个 和 这个2 我检查了 IIS 根站点中的 ISAPI 处理程序定义,但它看起来很好,所以我继续挣扎。
最后通过认识到 ISAPI 处理程序定义已在站点级别进行了修改,并且没有继承与根站点中相同的定义来修复此问题。修复了在 IIS 管理器中选择我的站点,转到“处理程序映射”部分,然后单击“恢复为继承”的问题。
I had the same issue. After reading, this and this2 I checked the ISAPI handlers definition in the root site of my IIS, but it looked fine, so I kept struggling some more.
Finally fixed it by realizing the ISAPI Handlers definition had been modified at the site level, and wasnt inheriting the same definitions as in the root site. It was fixed selecting my site in IIS Manager, going to the "Handler Mappings" section, and then clicking in "Revert To Inherited".