Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


In my application i am using an auto complete extender in this we select an client and we hold the selected client id in hidden field by using this hidden field we populate the some list of clients in the grid view, for this requirement i am getting the client id from the hidden field and getting the required records from database in the list and we try assign grid view's data source and binding but the grid is not populating after data binding and we are getting the following error in i.e like script error and i debug the application every thing works fine but grid was not populating in the page.

please if any body knows the reason for this please or any solution to this please post here

and i am searched on the net some of developers suggested ValidateRequest="false" but it also not working


Error Message:
Sys.Webforms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was : 500

Hi All,

Thanks for you suggestion and i implemented this but it is not working and here in my application. i am using the session state mode as "state server" and when i am changing the mode to "inproc" it is working but when i am using the mode as "inproc" it causes session timeout expiring early.

so please provide an solution when i am using the session mode as state server and the error must be resolved. please is there any way to solve this problem

and once again thanks for your reply and i think u give solution to this problem

Thanks and regard to all

Thanks in advance... early solutions are helpful to us.

Thanks and Regards
V.S.R.K.Raju...
Posted
Updated 19-May-10 5:19am
v2

Here are the most common reasons and why PageRequestManagerParserErrorException occurs:
1.Calls to Response.Write():
By calling Response.Write() directly you are bypassing the normal rendering mechanism of ASP.NET controls. The bits you write are going straight out to the client without further processing (well, mostly...). This means that UpdatePanel can't encode the data in its special format.
2.Response filters:
Similar to Response.Write(), response filters can change the rendering in such a way that the UpdatePanel won't know.
3.HttpModules:
Again, the same deal as Response.Write() and response filters.
4.Server trace is enabled:
If I were going to implement trace again, I'd do it differently. Trace is effectively written out using Response.Write(), and as such messes up the special format that we use for UpdatePanel.
5.Calls to Server.Transfer():
Unfortunately, there's no way to detect that Server.Transfer() was called. This means that UpdatePanel can't do anything intelligent when someone calls Server.Transfer(). The response sent back to the client is the HTML markup from the page to which you transferred. Since its HTML and not the special format, it can't be parsed, and you get the error.

Avoid them and it will be resolved!

Also:
A guy has this problem because, in the ObjectDataSource he was calling methods on the actual ASPX codebehind and the codebehind was doing something like UpdatePanel.Update() so the whole thing was getting screwed up. Just check if you have a similar problem? Are your doing a select or update method calling code that is in turn doing something to the controls?
 
Share this answer
 
Comments
V.SivaRamaKriShnaRaju 28-Jun-10 1:34am    
Reason for my vote of 3
it is good expalnation
can u put the code please ....

abraheem abulubbad
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900