ASP.NET - JS error in asp.net site - Asked By muthuraman alexander on 12-Jan-12 07:30 AM

hi all

i had deployed a asp.net site
i was working in local with no error
but when it was deployed in public it showing some JS error in IE
the same browser in which i tested in local host

the error is


please advice me

i dnt know to clear the error

thanks in advance
muthu
dipa ahuja replied to muthuraman alexander on 12-Jan-12 07:33 AM
check the line no. on which its saying you may have forgot some brackets or some syntax error
muthuraman alexander replied to dipa ahuja on 12-Jan-12 07:35 AM
i had checked ...everthing was correct...if there is any error
it also have to be reflected in local host ...
but it was not ...

thank u for ur reply
thanks in advance
muthu
dipa ahuja replied to muthuraman alexander on 12-Jan-12 07:36 AM
It may doesn't reflect on localhost , also try to run on different browser if your running in IE then try to run it on Google chrome
muthuraman alexander replied to dipa ahuja on 12-Jan-12 07:38 AM
it was working fine in mozila,and in crome...


thank u for ur reply
thanks in advance
muthu
dipa ahuja replied to muthuraman alexander on 12-Jan-12 07:39 AM
Then it must be syntax error because some browsers ignore some syntax errors while some need the proper code. You should check it and in error code also its showing some brackers error 
[)ia6l0 iii replied to muthuraman alexander on 12-Jan-12 01:35 PM
The only way - and the most efficient way - that I know to fix these script errors is to use the "Script" feature under "Debugging tools" in Internet Explorer.

If you have version 8 and above, turn the "debugging" on by pressing F12. and go to the script tab. Turn on the Script debugging , and reload the page. 

It will take you to the line of code that breaks.

And also note that if you're scripts are behind Cache Servers/Akamai you need to refresh them as well. That could be one of the reason for the scripts to work well in your localhost and not in your production webserver.

Hope this information helps.