This is a migrated thread and some comments may be shown as answers.

Trouble adding AjaxSetting

2 Answers 49 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
staleb
Top achievements
Rank 1
staleb asked on 07 Nov 2011, 12:23 PM
Hi
I have been upgrading an appication from Asp.Net to Asp.Net Ajax. But I'm having trouble making the ajax part working.
All I get is this error:
"Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled." 

As soon as I add a Ajaxsetting programatically or through html I get the same error. 

I have been stuck on this error some while now. I have browsed the forum for help, but cant seem to find a solution to my problem.

Adding a simple page that produces this error

Please help

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Nov 2011, 04:56 AM
Hello Staleb,

Check the following help documentation which explains more about this.
Known Reasons for Error Messages.

Thanks,
Shinu.
0
staleb
Top achievements
Rank 1
answered on 09 Nov 2011, 11:46 AM
Finally found the reason for my trouble.
In the web.config there was an refference to an asp.net 2.0 module 
<httpModules>
      <add type="WhitespaceModule" name="WhitespaceModule" />
    </httpModules>
Removing this solved the problem finally! :)
Tags
Ajax
Asked by
staleb
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
staleb
Top achievements
Rank 1
Share this question
or