views:

13

answers:

0

Hi

I have interesting problem here. Have you ever tried to parse (or convert or cast) string to int inside method triggered by child control inside the update panel?. Application is running on IIS 7.5. Everything works correctly under embedded VS application server, but then after deploy on IIS7.5 I am receiving famous asp.ajax error message:

Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

The code causing this error is: int runNumber = Int32.Parse(stringRunNumber); where run number is just for ex.: 20091010 As I mentioned, everything is parsing correctly under VS embedded server. Also AJAX starts to work correctly on IIS 7.5 if I remove this line of code.

Do you have any idea how to maybe set up IIS or web/maschine.config to start parse correctly ?

Thank you in advance.

related questions