473,545 Members | 4,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JScript runtime error '800a138f' 'undefined' is null or not an obj

I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Q uestion")).leng th > 100?
RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
RemoveHTML(Stri ng(rs("Section" )))%>

Changed to:

<%if (String(rs("Sec tion")).length > 100)
{Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;} else {
Response.Write( rs("Section")) ; }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expr esion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresi on, "<br>", chr(10))
RemoveHTML = RegEx.Replace(E xpresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
Jul 22 '05 #1
6 19223
Jon
It would seem odd it would be server-dependent. But for my morbid curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gma il.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State" <Da************ *****@discussio ns.microsoft.co m>
wrote in message news:A6******** *************** ***********@mic rosoft.com...
I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several
ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer
having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem
either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Q uestion")).leng th > 100?
RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
RemoveHTML(Stri ng(rs("Section" )))%>

Changed to:

<%if (String(rs("Sec tion")).length > 100)
{Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;} else {
Response.Write( rs("Section")) ; }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to
avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expr esion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresi on, "<br>", chr(10))
RemoveHTML = RegEx.Replace(E xpresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is
causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University

Jul 22 '05 #2
Sometimes it can be as simple as a missing quote such as:

...width="100%>

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
They are both Windows 2000 Advanced Server with service pack 4 and identical
patches installed, both on Dell PowerEdge servers. I don't know for certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gma il.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State" <Da************ *****@discussio ns.microsoft.co m>
wrote in message news:A6******** *************** ***********@mic rosoft.com...
I am running some off-the-shelf software that is written in ASP, which uses
JScript to generate dynamic content within HTML forms. There are several
ASP
pages which are partially rendering to IE, but stop midway through with an
error embeded in the page: "Microsoft JScript runtime error '800a138f'
'undefined' is null or not an object".

The software package has a large install base with no other customer
having
this problem. I also have a second identical install on another server
pointing to the same SQL database, and it doesn't exibit this problem
either.

Our own developers were able to work around the problem by making a small
change to the code.

The original code:

<%=String(rs("Q uestion")).leng th > 100?
RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
RemoveHTML(Stri ng(rs("Section" )))%>

Changed to:

<%if (String(rs("Sec tion")).length > 100)
{Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;} else {
Response.Write( rs("Section")) ; }%>

The latter bit of code had to have two changes.. one to change the odd
conditional statement to a more traditional if-statement, and second to
avoid
calling the RemoveHTML function, both which cause an error.

function RemoveHTML(Expr esion)
on error resume next
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
Expresion = Replace(Expresi on, "<br>", chr(10))
RemoveHTML = RegEx.Replace(E xpresion, "")
end function

I've searched Microsoft's KB and Googled the error, and so far nothing
useful has come up. Any ideas on what the cause is or how I can further
troubleshoot?

!!! Again, there is nothing wrong with the code.. it works on hundreds of
other servers. There is something particular about my server that is
causing
this !!!

Thanks in advance for any help anyone can offer!

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University


Jul 22 '05 #4
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da************ *****@discussio ns.microsoft.co m>
wrote in message news:5C******** *************** ***********@mic rosoft.com...
They are both Windows 2000 Advanced Server with service pack 4 and
identical
patches installed, both on Dell PowerEdge servers. I don't know for
certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on
any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid
curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gma il.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State"
<Da************ *****@discussio ns.microsoft.co m>
wrote in message
news:A6******** *************** ***********@mic rosoft.com...
>I am running some off-the-shelf software that is written in ASP, which
>uses
> JScript to generate dynamic content within HTML forms. There are
> several
> ASP
> pages which are partially rendering to IE, but stop midway through with
> an
> error embeded in the page: "Microsoft JScript runtime error '800a138f'
> 'undefined' is null or not an object".
>
> The software package has a large install base with no other customer
> having
> this problem. I also have a second identical install on another server
> pointing to the same SQL database, and it doesn't exibit this problem
> either.
>
> Our own developers were able to work around the problem by making a
> small
> change to the code.
>
> The original code:
>
> <%=String(rs("Q uestion")).leng th > 100?
> RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
> RemoveHTML(Stri ng(rs("Section" )))%>
>
> Changed to:
>
> <%if (String(rs("Sec tion")).length > 100)
> {Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;} else {
> Response.Write( rs("Section")) ; }%>
>
> The latter bit of code had to have two changes.. one to change the odd
> conditional statement to a more traditional if-statement, and second to
> avoid
> calling the RemoveHTML function, both which cause an error.
>
> function RemoveHTML(Expr esion)
> on error resume next
> Dim RegEx
> Set RegEx = New RegExp
> RegEx.Pattern = "<[^>]*>"
> RegEx.Global = True
> Expresion = Replace(Expresi on, "<br>", chr(10))
> RemoveHTML = RegEx.Replace(E xpresion, "")
> end function
>
> I've searched Microsoft's KB and Googled the error, and so far nothing
> useful has come up. Any ideas on what the cause is or how I can
> further
> troubleshoot?
>
> !!! Again, there is nothing wrong with the code.. it works on hundreds
> of
> other servers. There is something particular about my server that is
> causing
> this !!!
>
> Thanks in advance for any help anyone can offer!
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University


Jul 22 '05 #5
Thanks Mark, the database call is returning valid results.. but I'll have to
follow up on your comment about the ? operator with some testing. Not sure
why that didn't occur to me.

Something else we've discovered is that regular expressions are not working
at all on the problem server. I isolated the code from the RemoveHTML
function into its own ASP page and it consistantly returns null when I pass
it a value.

Any idea why regex would not be working on this server?

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Mark Schupp" wrote:
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da************ *****@discussio ns.microsoft.co m>
wrote in message news:5C******** *************** ***********@mic rosoft.com...
They are both Windows 2000 Advanced Server with service pack 4 and
identical
patches installed, both on Dell PowerEdge servers. I don't know for
certain
what their other customers are running.. presumably W2K since I was told
during one of our conference calls that 2003 wasn't supported yet, and on
any
number of possible hardware combinations.

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Jon" wrote:
It would seem odd it would be server-dependent. But for my morbid
curiosity
what server are you using? And is this different to the ones other people
are using?

--
Jon
wa*********@gma il.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"Dan Roberts @ Kent State"
<Da************ *****@discussio ns.microsoft.co m>
wrote in message
news:A6******** *************** ***********@mic rosoft.com...
>I am running some off-the-shelf software that is written in ASP, which
>uses
> JScript to generate dynamic content within HTML forms. There are
> several
> ASP
> pages which are partially rendering to IE, but stop midway through with
> an
> error embeded in the page: "Microsoft JScript runtime error '800a138f'
> 'undefined' is null or not an object".
>
> The software package has a large install base with no other customer
> having
> this problem. I also have a second identical install on another server
> pointing to the same SQL database, and it doesn't exibit this problem
> either.
>
> Our own developers were able to work around the problem by making a
> small
> change to the code.
>
> The original code:
>
> <%=String(rs("Q uestion")).leng th > 100?
> RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
> RemoveHTML(Stri ng(rs("Section" )))%>
>
> Changed to:
>
> <%if (String(rs("Sec tion")).length > 100)
> {Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;} else {
> Response.Write( rs("Section")) ; }%>
>
> The latter bit of code had to have two changes.. one to change the odd
> conditional statement to a more traditional if-statement, and second to
> avoid
> calling the RemoveHTML function, both which cause an error.
>
> function RemoveHTML(Expr esion)
> on error resume next
> Dim RegEx
> Set RegEx = New RegExp
> RegEx.Pattern = "<[^>]*>"
> RegEx.Global = True
> Expresion = Replace(Expresi on, "<br>", chr(10))
> RemoveHTML = RegEx.Replace(E xpresion, "")
> end function
>
> I've searched Microsoft's KB and Googled the error, and so far nothing
> useful has come up. Any ideas on what the cause is or how I can
> further
> troubleshoot?
>
> !!! Again, there is nothing wrong with the code.. it works on hundreds
> of
> other servers. There is something particular about my server that is
> causing
> this !!!
>
> Thanks in advance for any help anyone can offer!
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University


Jul 22 '05 #6
What happens if you remove the "on error resume next"?

--
--Mark Schupp
"Dan Roberts @ Kent State" <Da************ *****@discussio ns.microsoft.co m>
wrote in message news:EE******** *************** ***********@mic rosoft.com...
Thanks Mark, the database call is returning valid results.. but I'll have
to
follow up on your comment about the ? operator with some testing. Not
sure
why that didn't occur to me.

Something else we've discovered is that regular expressions are not
working
at all on the problem server. I isolated the code from the RemoveHTML
function into its own ASP page and it consistantly returns null when I
pass
it a value.

Any idea why regex would not be working on this server?

--
Dan Roberts, MCSE
Systems Administrator
Administrative Computing Services
Kent State University
"Mark Schupp" wrote:
You probably have a null value in one of the columns in the database for
that installation. Perhaps the ? syntax treats null values differently
than
the if/else syntax.

--
--Mark Schupp
"Dan Roberts @ Kent State"
<Da************ *****@discussio ns.microsoft.co m>
wrote in message
news:5C******** *************** ***********@mic rosoft.com...
> They are both Windows 2000 Advanced Server with service pack 4 and
> identical
> patches installed, both on Dell PowerEdge servers. I don't know for
> certain
> what their other customers are running.. presumably W2K since I was
> told
> during one of our conference calls that 2003 wasn't supported yet, and
> on
> any
> number of possible hardware combinations.
>
> --
> Dan Roberts, MCSE
> Systems Administrator
> Administrative Computing Services
> Kent State University
>
>
> "Jon" wrote:
>
>> It would seem odd it would be server-dependent. But for my morbid
>> curiosity
>> what server are you using? And is this different to the ones other
>> people
>> are using?
>>
>> --
>> Jon
>> wa*********@gma il.com
>> Look at that dead pixel on your screen! *SLAP* Gotcha!
>>
>> "Dan Roberts @ Kent State"
>> <Da************ *****@discussio ns.microsoft.co m>
>> wrote in message
>> news:A6******** *************** ***********@mic rosoft.com...
>> >I am running some off-the-shelf software that is written in ASP,
>> >which
>> >uses
>> > JScript to generate dynamic content within HTML forms. There are
>> > several
>> > ASP
>> > pages which are partially rendering to IE, but stop midway through
>> > with
>> > an
>> > error embeded in the page: "Microsoft JScript runtime error
>> > '800a138f'
>> > 'undefined' is null or not an object".
>> >
>> > The software package has a large install base with no other customer
>> > having
>> > this problem. I also have a second identical install on another
>> > server
>> > pointing to the same SQL database, and it doesn't exibit this
>> > problem
>> > either.
>> >
>> > Our own developers were able to work around the problem by making a
>> > small
>> > change to the code.
>> >
>> > The original code:
>> >
>> > <%=String(rs("Q uestion")).leng th > 100?
>> > RemoveHTML(Stri ng(rs("Section" ))).substr(0, 100) + "...":
>> > RemoveHTML(Stri ng(rs("Section" )))%>
>> >
>> > Changed to:
>> >
>> > <%if (String(rs("Sec tion")).length > 100)
>> > {Response.Write (String(rs("Sec tion")).substr( 0, 100) + "...") ;}
>> > else {
>> > Response.Write( rs("Section")) ; }%>
>> >
>> > The latter bit of code had to have two changes.. one to change the
>> > odd
>> > conditional statement to a more traditional if-statement, and second
>> > to
>> > avoid
>> > calling the RemoveHTML function, both which cause an error.
>> >
>> > function RemoveHTML(Expr esion)
>> > on error resume next
>> > Dim RegEx
>> > Set RegEx = New RegExp
>> > RegEx.Pattern = "<[^>]*>"
>> > RegEx.Global = True
>> > Expresion = Replace(Expresi on, "<br>", chr(10))
>> > RemoveHTML = RegEx.Replace(E xpresion, "")
>> > end function
>> >
>> > I've searched Microsoft's KB and Googled the error, and so far
>> > nothing
>> > useful has come up. Any ideas on what the cause is or how I can
>> > further
>> > troubleshoot?
>> >
>> > !!! Again, there is nothing wrong with the code.. it works on
>> > hundreds
>> > of
>> > other servers. There is something particular about my server that
>> > is
>> > causing
>> > this !!!
>> >
>> > Thanks in advance for any help anyone can offer!
>> >
>> > --
>> > Dan Roberts, MCSE
>> > Systems Administrator
>> > Administrative Computing Services
>> > Kent State University
>>
>>
>>


Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3120
by: Robert Mark Bram | last post by:
Hi All! I have checked Windows Script help for the Undefined Data Type. It says I should be able to do this: // This method will work if (typeof(x) == "undefined") // do something However, I have found that when I try to get something from Session and Request that does not exist, the object coming back from each is different
0
1102
by: Jim Heavey | last post by:
Hello, I am running into a situation where my application is failing and it is showing me "Jscript code" when it fails. The error message I get in a message box is "Microsoft JScript runtime error: 'undefined' is null or not an object". It is "stopping" and highlighting code having to do with the FOOTER on a datagrid and also having to do...
0
1874
by: mag48 | last post by:
Inside the footer of a datagrid (used to insert into DB) I have a textbox and just beside it I have a required Field Validator. I use the footer of the grid to add a record to the DataBase. When the add button is clicked . . . or any button on the page the message :Microsoft Jscript runtime error: "Page_Validator" is undefined. The error...
9
3320
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be visible to a client using a browser. My question is...can a knowledgeable browser user view Jscript source code in an asp file?
2
7918
by: JNariss | last post by:
Hello, I have created a connection to one of my databases using DreamWeaver and created a form. When I go to preview the form in a browser I can see it and fill out fields. However when I click the submit button I receive the following error: Microsoft JScript runtime error '800a1391' 'MM_ITEmpStat_STRING' is undefined
1
4209
by: JNariss | last post by:
Hello, I have created a connection to my Access database with Dreamweaver and made a simple form with 4 fields. The code behind this form was/is: <%@LANGUAGE="VBCRIPT" CODEPAGE="1252"%> <!--#include virtual="/Connections/EmployeeStatusChange.asp" --> <%
1
3040
by: finditajr | last post by:
Hello I'm having the following problem: My main webpage calls a function stored in a .js file that creates an HTML window to display a calendar. Whenever I click on a date in that calendar, the calendar should return to the main webpage, but it cannot find the home window again. I'm getting this error: Microsoft JScript runtime error:...
15
3693
by: zz12 | last post by:
Hello, would anyone be able to confirm that 'jscript.dll' is a necessary file for an .asp page on IIS 5.0 to use the <script language="JavaScipt" runat="SERVER"code? It looks like the code in this section is not working and being recognized since it keeps giving me: "Microsoft JScript runtime (0x800A01B0) File name or class name not found...
3
8636
by: suganya | last post by:
Hi Some professionals already has developed the project using menu. In my company, they have given me task to clear the error in that. It is a script file named as "menubarAPI4.js" which is kept inside the folder "menu_script". The following is the code in this file. var...
0
7464
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...
0
7396
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...
0
7805
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...
1
7413
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5968
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...
0
4943
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...
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
700
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...

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.