473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problems with class declaration and Request/Response

Hi guys!
I`ve got an ASP web site that worked perfectly on a virtual server. I had to reinstall it on my computer (win XP sp2, IIS 5.1). I changed all the routes, database connection string, etc. Everything works pefrectly except 2 things:

1.) when connecting to one page of the site, error occurs:
Microsoft VBScript error '800a03ea'
Syntax error
C:\INETPUB\WWWROOT\STAGE1\../include/oreq_main_class.asp, line 17
Class ObjectRequest
^
I found a file where oreq_main_class.asp is included, deleted the include string. As a result similar error occured with another class:
C:\INETPUB\WWWROOT\STAGE1\../comps/sscomp/comp_main_class.asp, line 14
Class ObjectComponent
^
2.) The site has multiple languages, so a function with Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") is used. On another machine everything worked ok, but on my PC there`s an error '8002802b' //include/localize_main_lib.asp, line 182 , this line is

userLocale = request.ServerVariables("HTTP_ACCEPT_LANGUAGE")

I found out that problem occurs when this function is called in global.asa file, and even if I place Response.Write("qwerty") anywhere in the function the same error is displayed. Attempt to use reponse or request object causes an error.

I`m new to asp, so please forgive me if i`m wrong :)
I would very much appreciate your help, guys!
Aug 28 '08 #1
8 2504
Fixed the second problem by removing localization function from global.asa. It`s not a good workaround, because on another machine it worked without modification, but that`s it.
The first problem is still being unsoved(( I have no ideas. Please help!!
Aug 28 '08 #2
jhardman
3,406 Expert 2GB
800a03ea is a syntax error, I don't know why you would get it intermittently, or after a change in host. Could you post your code around this line?

Jared
Aug 30 '08 #3
jhardman
Thanks much for the reply! an error is generated on the second line. If I exclude this file from page the same error appears when I declare any other class in other files.

<SCRIPT RUNAT="SERVER" LANGUAGE="VBSCRIPT">
Class ObjectRequest

Private iActionType
Private iObjectId
Private iDeep
Private sComponentType
Private sComponentId
Private sRequestList
Private iLanguage
Private sStartDate
Private sEndDate
Private iQueryType
Private iRoadmap
Private iEncodingType

Public Property Get ActionType()
ActionType = iActionType
End Property

Public Property Let ActionType(Value)
iActionType = Value
End Property

Public Property Get ObjectId()
ObjectId = iObjectId
End Property

Public Property Get RequestList()
RequestList = sRequestList
End Property

Public Property Let ObjectId(Value)
iObjectId = Value
End Property

Public Property Get Deep()
Deep = iDeep
End Property

Public Property Let Deep(Value)
iDeep = Value
End Property

Public Property Get ComponentType()
ComponentType = sComponentType
End Property

Public Property Let ComponentType(Value)
sComponentType = Value
End Property

Public Property Get ComponentId()
ComponentId = sComponentId
End Property

Public Property Get Language()
Language = iLanguage
End Property

Public Property Get StartDate()
StartDate = sStartDate
End Property

Public Property Get EndDate()
EndDate = sEndDate
End Property

Public Property Get QueryType()
QueryType = iQueryType
End Property

Public Property Get Roadmap()
Roadmap = iRoadmap
End Property

Public Property Get EncodingType()
EncodingType = iEncodingType
End Property

Public Property Let Language(Value)
iLanguage = Value
End Property

Public Property Let StartDate(Value)
sStartDate = Value
End Property

Public Property Let EndDate(Value)
sEndDate = Value
End Property

Public Property Let QueryType(Value)
iQueryType = Value
End Property

Public Property Let EncodingType(Value)
iEncodingType = Value
End Property

Public Sub Init2(byVal atp, byVal oid, byVal lev, byVal cid, byVal ctp, byVal lng, byVal rlist)
iActionType = atp
iObjectId = oid
iDeep = lev
sComponentId = cid
sComponentType = ctp
iLanguage = lng
sRequestList = rlist
End Sub

Public Sub Init(xml_node)
dim attribs, i
set attribs = xml_node.attributes ' XmlAttributeCollection
for i = 0 to attribs.length - 1
dim attribute, attr_name, attr_value
set attribute = attribs.item(i) ' XmlNode
attr_name = attribute.nodeName
attr_value = attribute.value
Select Case LCase(attr_name & "")
Case "atp"
if isNumeric(attr_value) then
iActionType = CInt(attr_value)
end if
Case "oid"

if isNumeric(attr_value) then
iObjectId = CInt(attr_value)
end if
Case "lev"
if isNumeric(attr_value) then
iDeep = CInt(attr_value)
end if
Case "ctp"
sComponentType = attr_value & ""
Case "lst"
sRequestList = attr_value & ""
Case "cid"
sComponentId = attr_value & ""
Case "lng"
if isNumeric(attr_value) then
iLanguage = attr_value & ""
end if
Case "sdt"
sStartDate = GetDateFromFlash(attr_value & "")
Case "edt"
sEndDate = GetDateFromFlash(attr_value & "")
Case "qtp"
iQueryType = attr_value & ""
Case "rmp"
if isNumeric(attr_value) then
iRoadmap = cint(attr_value)
end if
Case "enc"
if isNumeric(attr_value) then
iEncodingType = cint(attr_value)
end if
End Select
next
End Sub

Private Sub Class_Initialize()
iActionType = INPUT_ACTION_DEFAULT
iObjectId = -1
iDeep = INPUT_DEEP_DEFAULT
sComponentType = ""
sComponentId = ""
iLanguage = INPUT_LANG_DEFAULT
sStartDate = ""
sEndDate = ""
iRoadmap = 0
iEncodingType = 0
End Sub

Private Function GetDateFromFlash(sFlashDate)
GetDateFromFlash = ""
if sFlashDate & "" = "" then
exit function
end if
dim aValues
aValues = split(sFlashDate,",")
if ubound(aValues) >= 4 then
GetDateFromFlash = "{ ts '" & aValues(0) & "-" & LeadZero(aValues(1),2) & "-" & LeadZero(aValues(2),2) & " " & LeadZero(aValues(3),2) & ":" & LeadZero(aValues(4),2) & ":00' }"
elseif ubound(aValues) = 2 then
GetDateFromFlash = "{ ts '" & aValues(0) & "-" & LeadZero(aValues(1),2) & "-" & LeadZero(aValues(2),2) & " 00:00:00' }"
end if
End Function


End Class
Sep 3 '08 #4
I installed the application back on the virtual server, and the same error occurs. Seemslike that it is not the case of host changing
Sep 3 '08 #5
jhardman
3,406 Expert 2GB
I installed the application back on the virtual server, and the same error occurs. Seemslike that it is not the case of host changing
looking over your code, it sure doesn't look like vbscript. perhaps VB.NET? that could definitely cause this problem, if the server is trying to use the vbscript engine to run a vb page.

Jared
Sep 3 '08 #6
looking over your code, it sure doesn't look like vbscript. perhaps VB.NET? that could definitely cause this problem, if the server is trying to use the vbscript engine to run a vb page.

Jared
Sorry, i`m mistaken, this is vb.net. All other pages of the site wre working ok, so it is not the case of vbscript engine usage
Sep 4 '08 #7
Solved the problem by simply replacing file with its old working version. everything worked fine. then replaced the new version back, this also worked. Very odd.
Sep 4 '08 #8
jhardman
3,406 Expert 2GB
<SCRIPT RUNAT="SERVER" LANGUAGE="VBSCRIPT">
Class ObjectRequest
This is the problem. It should not say VBSCRIPT here. I don't know how you got it to work, but I'm glad you got it up.

Jared
Sep 4 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Eric | last post by:
Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works fine, however, when the checkbox is only field...
6
by: Brent | last post by:
I'm having odd problems with the WebResponse class. Some servers are speedy, while others don't play along at all. Consider the following pages*: ...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
6
by: Oliver | last post by:
I have a very wired problem requesting one specific url from within my application. I have struggeled with this for 5 hours now, and searched google withour any luck, so i hope that someone are...
7
by: Radu | last post by:
Hi. I have the following problem: The user needs to setup a request on a website, by deciding on a lot of questions. I want the website to dump an excel (CSV) file into a shared folder somewhere on...
7
evilmonkey
by: evilmonkey | last post by:
My assignment was to create a shopping cart servlet, it works locally on tomcat but when I deploy it to the schools server (also tomcat) it fails to refresh the front page and just prints the HTML...
3
by: jerry101 | last post by:
Okay, so I have no knowledge with ASP and I was asked to look at this contact form because the emails aren't delivering. I'll post the whole page of code, because I am unsure at what is what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.