Sunday, February 8, 2009

Obscure AJAX error htmlfile: Unknown runtime error

Hi All, 

Just a quick post to let you know of a sneaky little problem that only occurs in Internet Explorer. If you ever receive this error :

htmlfile: Unknown runtime error

The problem seems to be that you have multiple form tags within your one page. I stumbled across it because I
had created a user control in the past and didn't remember that it had a form tag in it.

Ok so that is the solution, but to be honest my work around won't work for everyone because I worked out
how to get rid of the form tags, the same might not go for everyone else.

BUT, remember, form tags!!!

Hope this helps,

- Tim

8 comments:

Anonymous said...

I have been struggling with the same problem. Ended up being a web user control had form tags in it. Sneaky Bugger!!

- Dan

Anonymous said...

YOU DON'T KNOW HOW FRUSTRATING I HAVE BEEN FINDING THIS BUG!!!! THANKYOU!!!!SERIOUSLY!!!THANKS

Safi Malete said...

I also removed form tags. It works perfect!
Many Thanks

Anonymous said...

Ah so simple...
form tags...I would have never thought.

Thank you.

Anonymous said...

Tim, Thanks a lot for your suggestion

Rajendran

Anonymous said...

thanks a lot. you are a Saviour.

Anonymous said...

Was stuck on it since yesterday.. Thanks a lot

Anonymous said...

The ASP (.Net 4) code I'm working with does not have a form tag, but does have div tags. Would the div tag cause the same error?
This same error started after adding an AJAX UpdatePanel control. Thanks. --SC