By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

jscript error when run on local machine but not on remote connections

P: n/a
I have an app I working on that was working fine a few days ago. Now I get
a jscript error:
Microsoft JScript runtime error: Object expected

in a part of the code that has not been modifed or touched. It's actually
part of a separate project. I only get this error when I try to view the
page on my local machine. If I connect to my webserver from another machine
it works fine. What can cause this? Why does it only fail on my local
machine?

Jim
Nov 15 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Unless you show the code that is running, and tell us the line it is failing
on, it is anyone's guess.

"Jim H" <no****@jimsaccount.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
I have an app I working on that was working fine a few days ago. Now I get a jscript error:
Microsoft JScript runtime error: Object expected

in a part of the code that has not been modifed or touched. It's actually
part of a separate project. I only get this error when I try to view the
page on my local machine. If I connect to my webserver from another machine it works fine. What can cause this? Why does it only fail on my local
machine?

Jim

Nov 15 '05 #2

P: n/a
The line it's failing on is the ActivateMenuControlStyleSheet call. This is
where it stops in the debugger:
<script language='JavaScript'>
var MenuHighlightColor = 'buttonhighlight';
ActivateMenuControlStyleSheet('/COMPAS3/ClientFiles/v_1_1_1_4/MenuControlSty
le.css',99);
</script>
It does not fail on other machine connecting to the same webserver. I even
went as far as to do a View->Source on the other machine, save it as an html
file and copy it to my local machine and run it. I still get the same error
on my local machine. The path is valid and it is full control for
"Everyone".

jim

"Marina" <nospam> wrote in message
news:ug*************@TK2MSFTNGP12.phx.gbl...
Unless you show the code that is running, and tell us the line it is failing on, it is anyone's guess.

"Jim H" <no****@jimsaccount.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
I have an app I working on that was working fine a few days ago. Now I

get
a jscript error:
Microsoft JScript runtime error: Object expected

in a part of the code that has not been modifed or touched. It's actually part of a separate project. I only get this error when I try to view the page on my local machine. If I connect to my webserver from another

machine
it works fine. What can cause this? Why does it only fail on my local
machine?

Jim


Nov 15 '05 #3

P: n/a
And what does ActivateMenuControlStyleSheet do? Where is this function
defined?

"Jim H" <no****@jimsaccount.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
The line it's failing on is the ActivateMenuControlStyleSheet call. This is where it stops in the debugger:
<script language='JavaScript'>
var MenuHighlightColor = 'buttonhighlight';
ActivateMenuControlStyleSheet('/COMPAS3/ClientFiles/v_1_1_1_4/MenuControlSty le.css',99);
</script>
It does not fail on other machine connecting to the same webserver. I even went as far as to do a View->Source on the other machine, save it as an html file and copy it to my local machine and run it. I still get the same error on my local machine. The path is valid and it is full control for
"Everyone".

jim

"Marina" <nospam> wrote in message
news:ug*************@TK2MSFTNGP12.phx.gbl...
Unless you show the code that is running, and tell us the line it is

failing
on, it is anyone's guess.

"Jim H" <no****@jimsaccount.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
I have an app I working on that was working fine a few days ago. Now I
get
a jscript error:
Microsoft JScript runtime error: Object expected

in a part of the code that has not been modifed or touched. It's actually part of a separate project. I only get this error when I try to view the page on my local machine. If I connect to my webserver from another

machine
it works fine. What can cause this? Why does it only fail on my

local machine?

Jim



Nov 15 '05 #4

P: n/a

Hi Jim,

If the well displayed webpage(on others machine) generate error on your
machine, I think this should related to the Internet Explorer.
I think the others' machine may disalbed the Jscript debugger so the error
did not generate, while your IE enabled it.
I think you should paste out the ActivateMenuControlStyleSheet()'s source
code to us, or we can not find the error.
Also, you can use VS.net debug into your page to find the error yourself.
(When the error dialog generates, chose debug to open the VS.net)

Hope this helsp,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Jim H" <no****@jimsaccount.com>
| References: <uh**************@tk2msftngp13.phx.gbl>
<ug*************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: jscript error when run on local machine but not on remote
connections
| Date: Wed, 15 Oct 2003 11:32:40 -0400
| Lines: 48
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#G**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: crlspr-24.233.164.226.myacc.net 24.233.164.226
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:191536
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| The line it's failing on is the ActivateMenuControlStyleSheet call. This
is
| where it stops in the debugger:
| <script language='JavaScript'>
| var MenuHighlightColor = 'buttonhighlight';
|
ActivateMenuControlStyleSheet('/COMPAS3/ClientFiles/v_1_1_1_4/MenuControlSty
| le.css',99);
| </script>
|
|
| It does not fail on other machine connecting to the same webserver. I
even
| went as far as to do a View->Source on the other machine, save it as an
html
| file and copy it to my local machine and run it. I still get the same
error
| on my local machine. The path is valid and it is full control for
| "Everyone".
|
|
|
| jim
|
| "Marina" <nospam> wrote in message
| news:ug*************@TK2MSFTNGP12.phx.gbl...
| > Unless you show the code that is running, and tell us the line it is
| failing
| > on, it is anyone's guess.
| >
| > "Jim H" <no****@jimsaccount.com> wrote in message
| > news:uh**************@tk2msftngp13.phx.gbl...
| > > I have an app I working on that was working fine a few days ago. Now
I
| > get
| > > a jscript error:
| > > Microsoft JScript runtime error: Object expected
| > >
| > > in a part of the code that has not been modifed or touched. It's
| actually
| > > part of a separate project. I only get this error when I try to view
| the
| > > page on my local machine. If I connect to my webserver from another
| > machine
| > > it works fine. What can cause this? Why does it only fail on my
local
| > > machine?
| > >
| > > Jim
| > >
| > >
| >
| >
|
|
|

Nov 15 '05 #5

P: n/a
It was a problem with a file missing in one of the folders. After getting
the latest version of the ClientFiles folder from source safe it worked
fine. I don't know why it worked on the other machine. The only thing I
can think of is that the other machine is a development machine as well and
maybe had the file cached from runs on it's local web server? Doesn't
really make sense but it's fine now. I must have been missing something.

Thanks to all who responded,
Jim

"Jim H" <no****@jimsaccount.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
The line it's failing on is the ActivateMenuControlStyleSheet call. This is where it stops in the debugger:
<script language='JavaScript'>
var MenuHighlightColor = 'buttonhighlight';
ActivateMenuControlStyleSheet('/COMPAS3/ClientFiles/v_1_1_1_4/MenuControlSty le.css',99);
</script>
It does not fail on other machine connecting to the same webserver. I even went as far as to do a View->Source on the other machine, save it as an html file and copy it to my local machine and run it. I still get the same error on my local machine. The path is valid and it is full control for
"Everyone".

jim

"Marina" <nospam> wrote in message
news:ug*************@TK2MSFTNGP12.phx.gbl...
Unless you show the code that is running, and tell us the line it is

failing
on, it is anyone's guess.

"Jim H" <no****@jimsaccount.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
I have an app I working on that was working fine a few days ago. Now I
get
a jscript error:
Microsoft JScript runtime error: Object expected

in a part of the code that has not been modifed or touched. It's actually part of a separate project. I only get this error when I try to view the page on my local machine. If I connect to my webserver from another

machine
it works fine. What can cause this? Why does it only fail on my

local machine?

Jim



Nov 15 '05 #6

P: n/a

Hi Jim,

I am glad it finally works.
If you still have any questions please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Jim H" <no****@jimsaccount.com>
| References: <uh**************@tk2msftngp13.phx.gbl>
<ug*************@TK2MSFTNGP12.phx.gbl>
<#G**************@tk2msftngp13.phx.gbl>
| Subject: Re: jscript error when run on local machine but not on remote
connections
| Date: Thu, 16 Oct 2003 18:30:06 -0400
| Lines: 69
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oa**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: crlspr-24.233.164.226.myacc.net 24.233.164.226
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:191951
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| It was a problem with a file missing in one of the folders. After getting
| the latest version of the ClientFiles folder from source safe it worked
| fine. I don't know why it worked on the other machine. The only thing I
| can think of is that the other machine is a development machine as well
and
| maybe had the file cached from runs on it's local web server? Doesn't
| really make sense but it's fine now. I must have been missing something.
|
| Thanks to all who responded,
| Jim
|
| "Jim H" <no****@jimsaccount.com> wrote in message
| news:%2****************@tk2msftngp13.phx.gbl...
| > The line it's failing on is the ActivateMenuControlStyleSheet call.
This
| is
| > where it stops in the debugger:
| > <script language='JavaScript'>
| > var MenuHighlightColor = 'buttonhighlight';
| >
|
ActivateMenuControlStyleSheet('/COMPAS3/ClientFiles/v_1_1_1_4/MenuControlSty
| > le.css',99);
| > </script>
| >
| >
| > It does not fail on other machine connecting to the same webserver. I
| even
| > went as far as to do a View->Source on the other machine, save it as an
| html
| > file and copy it to my local machine and run it. I still get the same
| error
| > on my local machine. The path is valid and it is full control for
| > "Everyone".
| >
| >
| >
| > jim
| >
| > "Marina" <nospam> wrote in message
| > news:ug*************@TK2MSFTNGP12.phx.gbl...
| > > Unless you show the code that is running, and tell us the line it is
| > failing
| > > on, it is anyone's guess.
| > >
| > > "Jim H" <no****@jimsaccount.com> wrote in message
| > > news:uh**************@tk2msftngp13.phx.gbl...
| > > > I have an app I working on that was working fine a few days ago.
Now
| I
| > > get
| > > > a jscript error:
| > > > Microsoft JScript runtime error: Object expected
| > > >
| > > > in a part of the code that has not been modifed or touched. It's
| > actually
| > > > part of a separate project. I only get this error when I try to
view
| > the
| > > > page on my local machine. If I connect to my webserver from another
| > > machine
| > > > it works fine. What can cause this? Why does it only fail on my
| local
| > > > machine?
| > > >
| > > > Jim
| > > >
| > > >
| > >
| > >
| >
| >
|
|
|

Nov 15 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.