使用ScriptMange,就出现了“Microsoft JScript runtime error: 'Sys' is undefined”的错误,并且调试还报不能调试数据:查了查资料,查到了是这个原因:
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
</system.web>
参考解决方法地址:
http://topic.csdn.net/u/20071217/11/896ad660-53dc-48ec-a614-e518cb71ddad.html ; http://hi.baidu.com/xiajiok/blog/item/0d46eddcac0c13a4cd1166e9.html