04 August 2010

Jscript runtime error

Microsoft JScript runtime error: Object required this is the error.
Problem: I would like to share with you one of interesting observation we observed.We were trying to set up source code to take up a new assignment.when we build project there was no error, but latter when the explorer is starting ,the processstoppes and was showing Microsoft JScript runtime error: Object required this is the error.
I am developing a web application and I have some set of asp.net controls. The error popup when the explorer starts. The interesting part was same source code was working perfectly in other machines. So please don’t confuse this scenario with the usual error that we gets when we are trying to access a null object at client side. Here we have a working source code and we are trying to put in new machine and trying to run there without any changes. Let’s say for example simple .net application with some JavaScript code on it. And IE 8 running with the "disable script debugging" setting checked.
We were working on VS 2008 on Windows XP Professional. And client browser is IE 8 installed on PC.The screen shot for error: 
Solution: If you are facing the same issue please check your IE version and if it is IE 8 uninstall it and install IE 7 back.Intersting solution rt ? yep  me too , and  will  not able to explain what exactly going wrong with IE 8.But for us it started working.if you know the exact issue and if you have the solution , you are most welcome to share.If you dont know just try it.It will work for sure.

No comments: