Saturday, March 24, 2012

AJAX and NLB

Hi,

how to enable AJAX using a NLB environment?

thanls

Nowhat do u mean by NLB environment ??


When i set a DNS name, for example: app.domain.es, then I add two machines to a NLB cluster: pc1 and pc2. Then, I set the IIS host header to app.domain.es. After this settings, AJAX only works sometimes.

This is the error:

PageRequestManagerParserErrorException: ....message could not be parsed...

Thanks and sorry for my english


Hi,molipo

sometimes it works, sometimes it throws Sys.WebForms.PageRequestManagerParserErrorException

This happens when the machineKey used to encrypt/decrypt the viewstate was changed, and more likely this will happen if you keep the page idle for a long time. To avoid this, you need to have a static machineKey.

Check this articlehttp://blog.g9th.com/2007/01/14/unable-to-validate-data-at-systemwebconfigurationmachinekeysectiongetdecodeddata.aspx

Let me know if you need more info.
You can also see this thread for more help:http://forums.asp.net/t/1115331.aspx

Thanks

NOTE:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

No comments:

Post a Comment