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

10 comments:

Dan Rivers 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

Mike said...

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

Thank you.

mygamebest said...

Very nice! Aion Gold You guys know what buy wow gold you're doing in wow power leveling designing Allods Gold these Allods Gold health status ffxi gil dashboards. Glad EQ2 Gold to see Lotro Gold your taking maple story mesos transparency seriously, and recognizing ROM Gold the benefits of opening eve isk up to your users. It will be an interest case study Lineage 2 adena to see how the (inevitable) next downtime event compares to the swg Credits previous one now that this exists.

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

Sqiar said...

Thanks for the post, In this complex environment business need to present there company data in meaningful way.So user easily understand it .Sqiar (http://www.sqiar.com/why-data-visualization/) which is in UK,provide services like Tableau and Data Warehousing etc .In these services sqiar experts convert company data into meaningful way.