这是zhughes从asp.net论坛上的该线程得到的答案。
原因:使用URL路由模块时,由scriptmanager生成的javascript路径会更改。
解决方案:告诉路由API不要路由扩展名为“ axd”的文件(由scriptmanager生成的文件)
将此规则添加到在Global.asax中注册路由规则的方法中
routes.Ignore("{resource}.axd/{*pathInfo}");另外,您应该在web.config中有此部分
<system.webServer> <modules runAllManagedModulesForAllRequests="true" /></system.webServer>



