Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then
on Win2003 as of 1 year ago), using the following code to parse the request
object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request")
Set oRequestDOM = CreateObject("MSXML.DOMDocument")
If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP
Request object could not be parsed."
....and suddenly on 12/23 it started producing an error on the third line of
code above.
I'm not at work right now, so I can't get at the error information available
from the DOM, so I will reply to this post with that information. I'm
wondering if anyone knows what might be causing this to suddenly fail. I
will be looking into what, if any, security hot-fixes were applied to the
server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks,
PJ 6 3151
Just wanted to add the error number that the parser is reporting in the
..parseError property: -2147467259 Google and MSDN Library don't seem to
yield any useful information about this issue. So I'm still completely
stumped. Any help is greatly appreciated.
PJ
"P James" <pj****@nospam.ink555.net> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl... Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks, PJ
P James wrote: Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks, PJ
Sorry, I'd like to help, but i have never seen this technique used in asp.
What advantage do you gain by using this technique?
I would suggest you be more explicit about your instantiation of the
domdocument:
Set oRequestDOM = CreateObject("MSXML2.DOMDocument")
Also, use a parse error object to get information about any errors that
occur during the parsing:
bStatus= oRequestDOM.loadxml(oASPRequest)
if bStatus = false then
Set xPE = oRequestDOM.parseError
strMessage = "errorCode = " & xPE.errorCode & vbCrLf
strMessage = strMessage & "reason = " & xPE.reason & vbCrLf
strMessage = strMessage & "Line = " & xPE.Line & vbCrLf
strMessage = strMessage & "linepos = " & xPE.linepos & vbCrLf
strMessage = strMessage & "filepos = " & xPE.filepos & vbCrLf
strMessage = strMessage & "srcText = " & xPE.srcText & vbCrLf
Err.Raise 64000,,strMessage
exit sub
end if
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Thanks for the response. I followed both of your suggestions and
unfortunately I still get the error. Here's what I get from the parseError
object:
?o.errorCode
-2147467259
?o.reason
Unspecified error
?o.line
0
?peo.linepos
0
?peo.srctext
<empty string>
Still banging my head on it... Thanks for all insights!
PJ
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl... P James wrote: Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks, PJ
Sorry, I'd like to help, but i have never seen this technique used in asp. What advantage do you gain by using this technique?
I would suggest you be more explicit about your instantiation of the domdocument: Set oRequestDOM = CreateObject("MSXML2.DOMDocument")
Also, use a parse error object to get information about any errors that occur during the parsing:
bStatus= oRequestDOM.loadxml(oASPRequest)
if bStatus = false then Set xPE = oRequestDOM.parseError strMessage = "errorCode = " & xPE.errorCode & vbCrLf strMessage = strMessage & "reason = " & xPE.reason & vbCrLf strMessage = strMessage & "Line = " & xPE.Line & vbCrLf strMessage = strMessage & "linepos = " & xPE.linepos & vbCrLf strMessage = strMessage & "filepos = " & xPE.filepos & vbCrLf strMessage = strMessage & "srcText = " & xPE.srcText & vbCrLf Err.Raise 64000,,strMessage exit sub end if
Bob Barrows
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
I inadvertantly said you should use loadxml instead of Load (copy-and-paste
issue) You didn't change "Load" to "LoadXML" did you? LoadXML expects a
string argument. oASPRequest is an object, not a string (does this object
have a ToString() method?)
P Jamesen wrote: Thanks for the response. I followed both of your suggestions and unfortunately I still get the error. Here's what I get from the parseError object:
?o.errorCode -2147467259 ?o.reason Unspecified error ?o.line 0 ?peo.linepos 0 ?peo.srctext <empty string>
Still banging my head on it... Thanks for all insights!
PJ "Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message news:uP**************@TK2MSFTNGP09.phx.gbl... P James wrote: Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it. Thanks, PJ
Sorry, I'd like to help, but i have never seen this technique used in asp. What advantage do you gain by using this technique?
I would suggest you be more explicit about your instantiation of the domdocument: Set oRequestDOM = CreateObject("MSXML2.DOMDocument")
Also, use a parse error object to get information about any errors that occur during the parsing:
bStatus= oRequestDOM.loadxml(oASPRequest)
if bStatus = false then Set xPE = oRequestDOM.parseError strMessage = "errorCode = " & xPE.errorCode & vbCrLf strMessage = strMessage & "reason = " & xPE.reason & vbCrLf strMessage = strMessage & "Line = " & xPE.Line & vbCrLf strMessage = strMessage & "linepos = " & xPE.linepos & vbCrLf strMessage = strMessage & "filepos = " & xPE.filepos & vbCrLf strMessage = strMessage & "srcText = " & xPE.srcText & vbCrLf Err.Raise 64000,,strMessage exit sub end if
Bob Barrows
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
P James wrote: Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks, PJ
Oh wait - you're doing this in a COM+ object? You should go to a more
relevant newsgroup: one of the vb groups I would think ...
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Hi,
Thanks for the insights. Turns out it was code elsewhere that interrogated
the asp request object's form fields. Apparently after you do that, you can
no longer have the xml dom's load method take the asp request object as
input. When I removed the code that examined the request.forms collection,
the code below that parses the request began to work again. Very strange,
to me at least.
Thanks for the troubleshooting tips.
PJ
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl... P James wrote: Hi,
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
...and suddenly on 12/23 it started producing an error on the third line of code above.
I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
If anyone can shed any light on this, I would sincerely appreciate it.
Thanks, PJ
Oh wait - you're doing this in a COM+ object? You should go to a more relevant newsgroup: one of the vb groups I would think ...
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: Ming Zhu |
last post by:
Hi, all,
I'm new to .NET and ASP.NET. I only use .NET Framework 1.0. I'm
reading the book "C# developer's guide to ASP.NET". But I find there
is no place to download the code used inside this...
|
by: Don Wash |
last post by:
Hi All!
I'm getting the following Error:
No DLLs has been compiled yet and nothing in the \bin directory. So it is
not the versioning problem or anything like that.
And here are the...
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: Matthew Copeland |
last post by:
A little background.
This is a VB.Net client application , and it uses a web reference to a web
service, which has been properly refreshed.
My app takes collections of two serializable...
|
by: eruanion |
last post by:
Hi, I've been working on this for a while now and I can't seem to find
out what is wrong with my code. I have 2 files one c3common.js which
only contains javascript functions for my main html page...
|
by: Buddy Home |
last post by:
Hello,
I'm trying to upload a file programatically and occasionally I get the
following error message.
Unable to write data to the transport connection: An established connection
was aborted...
|
by: arun1985 |
last post by:
In the project i am using i am having the following code and when i upload it to the server.Its givig me the following error in the global.cs file.
Server Error in '/' Application. ...
|
by: poojamangal |
last post by:
I want to upload images or pdf files. but i m unable to do so. i got error. please help me to sort it out..
my code is:
<%
'on error resume next
Class FreeASPUpload
Public UploadedFiles...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |