Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; slcc2 ;. net CLR 2.0.50727 ;. net CLR 3.5.30729 ;. net CLR 3.0.30729; Media Center PC 6.0 ;. net4.0c ;. net4.0e; infopath.3) timestamp: Sun, 15 Apr 2012 12:58:23 UTC
Message: syntax error line: 2 Characters: 1Code: 0 URI: http: // localhost: 83/webresource. axd? D = yQOmqI4XZ5gVQoaghF44PzSapELiuVKarpmW31J7xC2N4mG80OsyLiD2yhWzO1YD8vE39GEWoJHLVaIKp8S1_VqrAe_fJnUZPL89gzPEu-U1 & t = 634700214339000389
Message: syntax error line: 2 Characters: 1 code: 0 URI: http: // localhost: 83/webresource. axd? D = ZWqZMpkNK5-6KEDCE1cKgrCrrXgDesI9osd7NFU9wwWGOnzNNukUvNhj9qy_0gNhPr_uDPF5qc1YqEDSO4X2gGizOtmN1RrisbJBTTOIi7U1 & t = 634700214339000389
Message: syntax error line: 2 Characters: 1 code: 0 URI: http: // localhost: 83/scriptresource. axd? D = bps0npCnVGrzsdnnlpqOxkJZ95bbDe-7geKc_pOBQ2yFtkjSh_Om6dQXelEy-EEOnJiDu1eu9vXP8pKHRavU_k-ssfyHN0-CJtgyfL2YGJD8ki5V9pNO6Y37wVaaM0JTs24Hjg-nS8RQlRhu7JD4qGA0ML047jOoO5Fq1mQ5YIvBRA3IDgYSaILMo15UAyWs0 & t = ffffffff940d030f
Message: "webform_dopostbackwithoptions" undefined line: 1 character: 1 code: 0 URI: http: // localhost: 83/articles/list. aspx
The website was created in the past few days and there was no problem at the beginning. Later, this error was reported. The website found a lot of answers, but it did not work. Finally, it found a solution abroad and finally solved the problem.
This is another method:
- * The axd file ing is lost in IIS or is not correctly configured.
- The httpcompress component in dnn is used, but the Web. config is not correctly configured.
The solution is as follows:
For1:
Enter IIS and site properties. Add the. axd ing to site configuration, but you cannot select "check whether the file exists.
Get, Head, post, debug c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_isapi.dll. axd
For2:
In web. config
View code
<Httpcompress preferredalgorithm = " Gzip " Compressionlevel = " High " > <Excludedmimetypes> <add type =" Image/JPEG " /> <Add type = " Image/GIF " /> <Add type = " Text/X-component " /> <! -- Solve the freetextbox error-> <add type = " Text/plain " /> <! -- Solve the problem that AJAX callback does not support compression formats --> </excludedmimetypes> <excludedpaths> <add Path =" Nocompress. aspx " /> <Add Path = " Resource. axd " /> <Add Path = " Webresource. axd " /> <! -- Solve JavaScript errors --> </excludedpaths>
But I tried it and it didn't work. It doesn't seem to be the reason.
Therefore, to sum up the following problems, such as webform_postbackoptions being undefined and webform_postbackoptions being undefined, check whether the error is caused by webresource. axd.
Open the error page and checkSource code, Find
<SCRIPT src = "/webresource. axd? D = xxx & amp; T = xxx "type =" text/JavaScript "> </SCRIPT>
Directly enter this address in IE to check whether the file can be obtained. If not, check whether IIS has mapped the axd. If yes, whether the "check whether the file exists" restriction is removed.
If you can open the file, check the file size and version, and carefully check the file content. What is the difference between the file size and version and the download from other websites.
If the file cannot be opened due to an error, check whether customerror is redirected in Web. config.
I entered
Http: // localhost: 83/webresource. axd? D = yQOmqI4XZ5gVQoaghF44PzSapELiuVKarpmW31J7xC2N4mG80OsyLiD2yhWzO1YD8vE39GEWoJHLVaIKp8S1_VqrAe_fJnUZPL89gzPEu-U1 & t = 634700214339000389
Error 404
Finally, I found the solution in Asp.net.CommunityFound in:
Http://forums.asp.net/t/1578110.aspx
I created a webresource. axd empty file in the root directory to solve the problem.
However, another error was reported:
ASP. NET Ajax client framework cannot be loaded
So I entered
Http: // localhost: 12625/scriptresource. axd? D = fill _-0 & amp; T = ffffffff940d030f
Error 404
Therefore, a scriptresource. axd empty file is created under the root directory, and the problem is solved.