473,750 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
6 2063
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****@jimsacc ount.com> wrote in message
news:uh******** ******@tk2msftn gp13.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
The line it's failing on is the ActivateMenuCon trolStyleSheet call. This is
where it stops in the debugger:
<script language='JavaS cript'>
var MenuHighlightCo lor = 'buttonhighligh t';
ActivateMenuCon trolStyleSheet( '/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******** *****@TK2MSFTNG P12.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****@jimsacc ount.com> wrote in message
news:uh******** ******@tk2msftn gp13.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
And what does ActivateMenuCon trolStyleSheet do? Where is this function
defined?

"Jim H" <no****@jimsacc ount.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
The line it's failing on is the ActivateMenuCon trolStyleSheet call. This is where it stops in the debugger:
<script language='JavaS cript'>
var MenuHighlightCo lor = 'buttonhighligh t';
ActivateMenuCon trolStyleSheet( '/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******** *****@TK2MSFTNG P12.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****@jimsacc ount.com> wrote in message
news:uh******** ******@tk2msftn gp13.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

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 ActivateMenuCon trolStyleSheet( )'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****@jimsacc ount.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: crlspr-24.233.164.226. myacc.net 24.233.164.226
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!tk2 msftngp13.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1915 36
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| The line it's failing on is the ActivateMenuCon trolStyleSheet call. This
is
| where it stops in the debugger:
| <script language='JavaS cript'>
| var MenuHighlightCo lor = 'buttonhighligh t';
|
ActivateMenuCon trolStyleSheet( '/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******** *****@TK2MSFTNG P12.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****@jimsacc ount.com> wrote in message
| > news:uh******** ******@tk2msftn gp13.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
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****@jimsacc ount.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
The line it's failing on is the ActivateMenuCon trolStyleSheet call. This is where it stops in the debugger:
<script language='JavaS cript'>
var MenuHighlightCo lor = 'buttonhighligh t';
ActivateMenuCon trolStyleSheet( '/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******** *****@TK2MSFTNG P12.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****@jimsacc ount.com> wrote in message
news:uh******** ******@tk2msftn gp13.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

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****@jimsacc ount.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: crlspr-24.233.164.226. myacc.net 24.233.164.226
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1919 51
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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****@jimsacc ount.com> wrote in message
| news:%2******** ********@tk2msf tngp13.phx.gbl. ..
| > The line it's failing on is the ActivateMenuCon trolStyleSheet call.
This
| is
| > where it stops in the debugger:
| > <script language='JavaS cript'>
| > var MenuHighlightCo lor = 'buttonhighligh t';
| >
|
ActivateMenuCon trolStyleSheet( '/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******** *****@TK2MSFTNG P12.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****@jimsacc ount.com> wrote in message
| > > news:uh******** ******@tk2msftn gp13.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3005
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm trying to login with correct credentials it give me error: Server Error in '/PDVMgr' Application. ----------------------------------------------------------------------------
10
2722
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
0
4353
by: tony dong | last post by:
Hi there I use vs.net 2005 with standard sql 2005 under machine\sql2005 for instant when I create webpart, the code get from quickstart as follow: <%@ Page Language="C#" %> <%@ Register Src="WebPartPageMenu.ascx" TagName="WebPartPageMenu" TagPrefix="uc1" %> <html> <head id="Head1" runat="server"> <title>Web Part Page</title>
6
4956
by: Chris Love | last post by:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) I get this the frist time I open an ASP.NEt 2.0 site on my development machine now. It started happening when I tried to use the...
7
2198
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer" connection string in the machine.config, changed that to look at a SQL 2000 database, but the error still comes up. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be...
1
4726
by: John Shadel | last post by:
I have the following setup: 1. ASP.NET 2.0 web app hosted on a web server (inetpub directory hosting physical files of the web site on a different drive name, E: than the SQL Server Instance, which is on C:) 2. SQL Server on the same server, with security settings enabling ASPNET group and groups containing users allowed to interact with the website added to SQL Server Instance security settings. 3. Impersonation = true, i.e. ASPNET...
5
2542
by: Alan Silver | last post by:
Hello, Server configuration: Windows 2003 Server SP2 SQL Server 2000 SP4 ..NET v2.0.50727 just built up a new server using the same configuration as my current one. I even used the same CDs and registration keys, so I'm certain that the two machines are as similar as they can be.
1
1652
by: SayamiSuchi | last post by:
Hi.. I have been assigned to make a database in some remote machine.The machine has MSSQL 2005.I need to connect to that remote machine's sql server via my pc using my SQL Management express.I do have that computer's IP address(say,123.456.789.000),and the username and password.But when i try to connect to the server ,I get the following error: Cannot connect to 123.456.789.000\sqlexpress An error has occured while establishing a...
5
3558
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application. --------------------------------------------------------------------------------
0
9001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.