Microsoft JScript runtime error: Object expected

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 3.5

I've developed a website using asp.net 3.5/visual studio 2008. Now after I
had to reinstall everything on my computer I get messages like "Microsoft
JScript runtime error: Object expected", which I didn't get before, the
error occur at the first line in the code below...
I run IE8

<body onload="getFrame()"> <<<<<<<<<<<----------- here the code
breaks and I get the message mentioned above
<form name="aspnetForm" method="post" action="default.aspx"
id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUKLTc1OTk0MzA4OA9kFgJmD2QWAgIDD2QWCAIDDxYCHgVzdHlsZQUld2lkdGg6MTkwcHg7YmFja2dyb3VuZC1jb2xvcjojMDA3OGFkOxYCAgUPDxYCHgdWaXNpYmxlaGRkAgUPZBYGAgEPZBYEAgIPFgIfAWdkAgQPFgIeC18hSXRlbUNvdW50AgEWAmYPZBYIAgEPFgIeBGhyZWYFE34vRGVmYXVsdC5hc3B4P2lkPTIWAgIBDw8WAh4ISW1hZ2VVcmwFI34vSW1hZ2VzL0FydGljbGVUaHVtYm5haWwuYXNweD9pZD0yZGQCAw8WAh4EVGV4dAUMWzI4LjA0LjIwMDldZAIFDxYCHwUFDU5ZRSBORVRUU0lERVJkAgcPFgIfBQWoAlZpIGhhciBuw6UgbGFuc2VydCBoZWx0IG55ZSBuZXR0c2lkZXIgc29tIHNrYWwgaMOlbmR0ZXJlIGRlbiDDuGt0IHZla3N0ZW4gYXYgYsOlZGUgbWVkbGVtbWVyIG9nIG1lZGxlbXNiZWRyaWZ0ZXIuIERlIG55ZSBuZXR0c2lkZXIgZ2rDuHIgZGV0IGVua2xlcmUgw6UgZmlubmUgdGlsYnVkLCBiZXN0aWxsZXRpbGJ1ZCBvZyBnaXIgZW4gbWVyIHNwZW5uZW5kZSAidmVyZGVuIGF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1czEkY3RsMDMFJGN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjIkTG9naW5WaWV3MQ8PZAIBZAUXY3RsMDAkTG9naW4xJExvZ2luVmlldzEPD2QCAWTyY7n6AHquRS1d1NTEyMXDydym6w=="
/>
</div>

any ideas?
 
Yes, I know an object is exprected. But I didn't get this error before I
reinstalled everything on my computer.. The code is exactly as fore I
reinstalled..., One difference I see is that wehn I run my website I see in
Solution Explorer "Script Documents", I didn't see that before I resintalled
everything on my computer... I wonder what can cause this?
 
Yes, I know an object is exprected. But I didn't get this error before I
reinstalled everything on my computer.. The code is exactly as fore I
reinstalled...,

It could be for example because of different version of ASP.NET. Yes,
I know that it is the same project like before, but if it gives you an
error than something is different. I don't know how you run the site,
if it is on IIS then maybe IIS has different version of ASP.NET.
One difference I see is that wehn I run my website I see in
Solution Explorer "Script Documents", I didn't see that before I resintalled
everything on my computer... I wonder what can cause this?

It is because of Client-Side Script Debugging
http://msdn.microsoft.com/en-us/library/7seh8d72.aspx

As I said, try to debug js. This is the fastest way to find the error
 
Back
Top