PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

WebUIValidation.js -- undefined is null or not an object

 
 
siddhath
Guest
Posts: n/a
 
      28th Dec 2007
Hi All,
my asp.net applications is using validations controls and it throws
'undefined is null or not an object' error in WebUIValidation.js
Error only happens on few machines if i move the same applications to a
different machine error does not happen.

i tried copying aspnet_client folder from the machine where it worked to the
machine where is did not work and that did not help. i still get the same
error.
more details on error :

*error ocurs in function ValidatorOnLoad() method in WebUIValidation.js
* Page_Validators.length returns 4 but when i look at the Page_Validators in
watch window there are only 2 item in it.
so it fails when scrips acccess it using a index of 2.

i don't know why Page_Validators.length returns 4 when there are only 2
elelments in it and also why it happens only on specfic machines.

thanks
Siddharth
 
Reply With Quote
 
 
 
 
Mohamad Elarabi [MCPD]
Guest
Posts: n/a
 
      30th Dec 2007
Does the error happen on different clients or the same client?

When you say different machines I'm assuming different web servers but same
web client correct?


--
Mohamad Elarabi
MCP, MCTS, MCPD.


"siddhath" wrote:

> Hi All,
> my asp.net applications is using validations controls and it throws
> 'undefined is null or not an object' error in WebUIValidation.js
> Error only happens on few machines if i move the same applications to a
> different machine error does not happen.
>
> i tried copying aspnet_client folder from the machine where it worked to the
> machine where is did not work and that did not help. i still get the same
> error.
> more details on error :
>
> *error ocurs in function ValidatorOnLoad() method in WebUIValidation.js
> * Page_Validators.length returns 4 but when i look at the Page_Validators in
> watch window there are only 2 item in it.
> so it fails when scrips acccess it using a index of 2.
>
> i don't know why Page_Validators.length returns 4 when there are only 2
> elelments in it and also why it happens only on specfic machines.
>
> thanks
> Siddharth

 
Reply With Quote
 
 
 
 
siddhath
Guest
Posts: n/a
 
      2nd Jan 2008
server a , client A ==>does ot work

Server B , client A ===> works
 
Reply With Quote
 
Kalpesh
Guest
Posts: n/a
 
      2nd Jan 2008
I am making a wild guess.

Do both the machines have the web applications configured to run
against same .net version?
i.e. it could be possible that server A has your application
configured to run against .net 1.1
and server B might have been configured to run against .net 2.0

Kalpesh
 
Reply With Quote
 
Mohamad Elarabi [MCPD]
Guest
Posts: n/a
 
      3rd Jan 2008
Kalpesh has a valid point. If you find that they're both running the same
version you might need to uninstall and reinstall the client side scripts on
your server using aspnet_regiis.exe. You can do that by browsing in a dos
prompt to the framework version folder, usually
C:\windows\Microsoft.Net\Framework\vX.X.XXXXX and then running a couple of
commands to uninstall and reinstall. Here are the commands assuming you're
running this on .Net version 2.0:

C:\>cd windows\Microsoft.Net\Framework\v2.0.50727
C:\>aspnet_regiis -e <--This uninstalls scripts
C:\>aspnet_regiis -c <--This installs scripts
C:\>iisreset <--This restarts IIS, sites will go down temporarily.

If that doesn't work then you may do the following but after making sure
that all sites on this webserver are .Net 2.0 compatible. The following will
uninstall all versions of the framework from this machine and then reinstall
2.0 to all sites.

C:\>cd windows\Microsoft.Net\Framework\v2.0.50727
C:\>aspnet_regiis -ua <--This uninstalls ASP.Net versions
C:\>aspnet_regiis -r <--This installs ASP.Net 2.0 to all sites
C:\>iisreset <--This restarts IIS, sites will go down temporarily.

Note that this procedure usually takes less than a minute, but if you're not
sure about this or if this is a production server you might need to test this
on a dev box or your workstation, not because it is a problematic process,
not at all, but just so you are confident that you can recover. I won't
recommend the second process if you have 1.1 and 2.0 apps on the same
machine, although you can still do it but this would be missing other
non-generic steps in order to recover the 1.1 apps to working condition and I
don't have enough information to write you these commands. Please let me know
whether this helps or not.

Thanks,

--
Mohamad Elarabi
MCP, MCTS, MCPD.


"siddhath" wrote:

> server a , client A ==>does ot work
>
> Server B , client A ===> works

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'undefined' is null or not an object error Potomac, MD Windows XP Performance 0 31st Mar 2010 11:05 PM
'undefined' is null or not an object =?Utf-8?B?UGhpbA==?= Microsoft Outlook Discussion 2 13th Jun 2005 08:00 AM
'undefined' is null or not an object =?Utf-8?B?UGhpbA==?= Microsoft Frontpage 2 12th Jun 2005 07:25 AM
Runtime Error: 'undefined' is null or not an object =?Utf-8?B?Q29uX1BoaQ==?= Windows XP Internet Explorer 6 27th Oct 2004 03:39 PM
webpage error: "undefined" is undefined line 470 marc.peng@scotiabank.com Windows XP Internet Explorer 0 2nd Mar 2004 10:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 AM.