Modify your web. config file as follows!
1 < System . Web >
2 <! --
3 Set compilation DEBUG = "true" to insert the debugging symbol
4 Compiled pages. However, this
5 Performance is affected, so this value is only available during development.
6 Set to true.
7 -->
8 < Compilation Debug = "True" >
9 < Assemblies >
10 < Add Assembly = "System. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35" />
11 < Add Assembly = "System. Web. Extensions. Design, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35" />
12 < Add Assembly = "System. Design, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" />
13 < Add Assembly = "System. Drawing. Design, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" />
14 </ Assemblies >
15 </ Compilation >
16 <! --
17 In the <authentication> section, you can configure
18 Security Authentication mode,
19 To identify the user.
20 -->
21 < Httphandlers >
22 < Remove Verb = "*" Path = "*. Asmx" />
23 < Add Verb = "*" Path = "*. Asmx" Validate = "False" Type = "System. Web. Script. Services. scripthandlerfactory, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35" />
24 < 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" />
25 < 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" />
26 </ Httphandlers >
27
28 < Authentication Mode = "Windows" />
29 <! --
30 If an unprocessed error occurs during request execution,
31 You can configure the corresponding processing steps in the <mermerrors> section. Specifically,
32 This section allows developers to configure
33 HTML error page to be displayed
34 To replace the error stack trace.
35
36 <Customerrors mode = "remoteonly" defaultredirect = "genericerrorpage.htm">
37 <Error statuscode = "403" Redirect = "noaccess.htm"/>
38 <Error statuscode = "404" Redirect = "filenotfound.htm"/>
39 </Customerrors>
40 -->
41 </ System. Web >
42