After the system was reinstalled, Ajax was installed again. However, the system always prompts "error: 'sys 'undefined". I looked at the previous project and found the web.
Code
1 < System. Web >
2 <! --
3 Set compilation debug = " True " Insert debugging symbols
4 Compiled pages. However, this
5 Performance is affected, so this value is only available during development.
6 Set True .
7 Httphandlers and httpmodules are set to solve sys errors.
8 -->
9 < Identity impersonate = " True " />
10 < Httphandlers >
11 < Remove verb = " * " Path = " *. Asmx " />
12 < Add verb = " * " Path = " *. Asmx " Validate = " False " Type = " System. Web. Script. Services. scripthandlerfactory, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
13 < Add verb = " * " Path = " * _ Appservice. axd " Validate = " False " Type = " System. Web. Script. Services. scripthandlerfactory, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
14 < 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 " />
15 </ Httphandlers >
16 < Httpmodules >
17 < Add name = " Scriptmodule " Type = " System. Web. Handlers. scriptmodule, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
18 </ Httpmodules >
19 < Compilation debug = " True " >
20 < Assemblies >
21 < Add assembly = " System. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
22 < Add assembly = " System. Design, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a " />
23 < Add assembly = " System. Windows. Forms, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
24 </ Assemblies > </ Compilation >
25 <! --
26 Pass < Authentication > You can configure
27 Security Authentication mode,
28 To identify the user.
29 -->
30 < Authentication Mode = " Windows " />
31 <! --
32 If an unprocessed error occurs during request execution,
33 Then pass < Customerrors > You can configure the corresponding processing steps. Specifically,
34 This section allows developers to configure
35 HTML error page to be displayed
36 To replace the error stack trace.
37
38 < Customerrors Mode = " Remoteonly " Defaultredirect = " Genericerrorpage.htm " >
39 < Error statuscode = " 403 " Redirect = " Noaccess.htm " />
40 < Error statuscode = " 404 " Redirect = " Filenotfound.htm " />
41 </ Customerrors >
42 -->
43 </ System. Web >
Note:<ASP: Srciptmanager> Controls must be followed<Form>Back