When ScriptMange is used, the "Microsoft JScript runtime error: 'sys 'is undefined" error occurs. When debugging, the system reports that debugging data cannot be debugged. The following error occurs:
<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>
There are two solutions available on the Internet: add one in <system: web> in web. config:
1: <remove verb = "*" path = "*. asmx"/>
<Add verb = "*" path = "*. asmx "validate =" false "type =" Microsoft. web. script. services. scriptHandlerFactory, Microsoft. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "/>
<Add verb = "GET" path = "ScriptResource. axd" type = "Microsoft. Web. Handlers. ScriptResourceHandler" validate = "false"/>
There is no problem with this kind of computer at home, and this problem still occurs on the company's computer (it should be said that the computer at home does not need to be assigned this also does not have this problem)
2. <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 "/>
So there will be no problems.