473,664 Members | 2,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft.XMLHT TP

I've been searching everywhere online to find an alternative method besides
using Microsoft.XMLHT TP (as it freezes the server up alot!!) but with no luck
at all.

I am using server side ASP, and some said to use Microsoft.Serve rXMLHTTP
instead. However I have tried that as well and it still freezes up the whole
thing (i.e. the site just keeps loading forever).

I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(

I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.

so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not freezing
up the page? Please help!!!!!!

Vanessa
Jul 12 '07 #1
14 14165
=?Utf-8?B?VmFuZXNzYQ= =?= wrote on 12 jul 2007 in
microsoft.publi c.inetserver.as p.general:
I've been searching everywhere online to find an alternative method
besides using Microsoft.XMLHT TP (as it freezes the server up alot!!)
but with no luck at all.
Does it really freeze the server, so no other users can access it,
and the server has to be restarted, or does it freeze the browser?
I am using server side ASP,
On your own machine via localhost:// or on the web?
and some said to use
Microsoft.Serve rXMLHTTP instead. However I have tried that as well
and it still freezes up the whole thing (i.e. the site just keeps
loading forever).
Wouldn't that be because you made some error in your code?

Why not show your code, just an minimized example that does what you say.

I manage quite well with asp-vbscript:

Set objXMLHTTP = Server.CreateOb ject("Microsoft .XMLHTTP")
(i.e. the site just keeps loading forever).
Site's do not load, perhaps the server does, or the browser,
but in the case of Microsoft.XMLHT TP,
how do you know the supposed freezeup [of the server?] is caused by that?
I tried to do a "on error resume next" clause to catch the error but
still doesn't stop the page being freezing up.. :(
So it is the page that is freezing up, not the server?
The browser, not the server?

"on error resume next" prohibits an error to be shown by the standard
error page of ASP, and to be later catched by your own code, it does not
catch errors that would not be signalled otherwise.
I saw someone here said don't use XMLHTTP in ASP as it is not thread
safe (is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.
Wrong approch, I think, first find the diagnosis, then the therapy.

Start with "What is freezing up?"
so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not
freezing up the page? Please help!!!!!!
Again, show a simple code that does the harm you say.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 12 '07 #2

"Vanessa" <Va*****@discus sions.microsoft .comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
I've been searching everywhere online to find an alternative method
besides
using Microsoft.XMLHT TP (as it freezes the server up alot!!) but with no
luck
at all.

I am using server side ASP, and some said to use Microsoft.Serve rXMLHTTP
instead. However I have tried that as well and it still freezes up the
whole
thing (i.e. the site just keeps loading forever).

I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(

I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.

so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not freezing
up the page? Please help!!!!!!

Vanessa

Yes you should be using ServerXMLHTTP. You should also be using the version
specific MSXML.ServerXML HTTP.3.0.

Are you making a request back to your own server? If so it is prone to
deadlock. If you have ASP debugging on then you can't make a request to
another ASP page on your own server from ASP.
--
Anthony Jones - MVP ASP/ASP.NET
Jul 12 '07 #3
"Evertjan." wrote:
=?Utf-8?B?VmFuZXNzYQ= =?= wrote on 12 jul 2007 in
microsoft.publi c.inetserver.as p.general:
I've been searching everywhere online to find an alternative method
besides using Microsoft.XMLHT TP (as it freezes the server up alot!!)
but with no luck at all.

Does it really freeze the server, so no other users can access it,
and the server has to be restarted, or does it freeze the browser?
I am not sure if it is freezing up the server or the browser, but when the
deadlock happened, I tried to access the site from different stations and all
browers are showing 'loading......' and it never responds. But the weird
thing is the other sections of the site which doesn't call any XMLHTTP
methods are still running and responding back. So is that freeze on the
browser or server?

At this case, I have to restart the IIS Admin Service and the site is back
to normal.

One thing I forgot to mention is -- it doesn't freeze all the times, most of
the time it is running fine and able to read/write data via XMLHTTP.
>
I am using server side ASP,

On your own machine via localhost:// or on the web?

On my company's website.
>
and some said to use
Microsoft.Serve rXMLHTTP instead. However I have tried that as well
and it still freezes up the whole thing (i.e. the site just keeps
loading forever).

Wouldn't that be because you made some error in your code?

Why not show your code, just an minimized example that does what you say.

I manage quite well with asp-vbscript:

Set objXMLHTTP = Server.CreateOb ject("Microsoft .XMLHTTP")

Here is one section of my script:

PostURL = linkhome & "nav/GetCustomer.asp ?CustomerID=" &CustomerID
Set xml = Server.CreateOb ject("Microsoft .XMLHTTP")
xml.Open "POST", PostURL, false,"",""
xml.Send
getcustomXML = xml.responseTex t
Set xml = Nothing

It seems like it got stuck at "xml.Send" line
>
(i.e. the site just keeps loading forever).

Site's do not load, perhaps the server does, or the browser,
but in the case of Microsoft.XMLHT TP,
how do you know the supposed freezeup [of the server?] is caused by that?
Actually I still can't figure out the exact cause of the freezeup :( so
please help!

I tried to do a "on error resume next" clause to catch the error but
still doesn't stop the page being freezing up.. :(

So it is the page that is freezing up, not the server?
The browser, not the server?

"on error resume next" prohibits an error to be shown by the standard
error page of ASP, and to be later catched by your own code, it does not
catch errors that would not be signalled otherwise.
I saw someone here said don't use XMLHTTP in ASP as it is not thread
safe (is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.

Wrong approch, I think, first find the diagnosis, then the therapy.

Start with "What is freezing up?"
so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not
freezing up the page? Please help!!!!!!

Again, show a simple code that does the harm you say.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 12 '07 #4


"Anthony Jones" wrote:
>
"Vanessa" <Va*****@discus sions.microsoft .comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
I've been searching everywhere online to find an alternative method
besides
using Microsoft.XMLHT TP (as it freezes the server up alot!!) but with no
luck
at all.

I am using server side ASP, and some said to use Microsoft.Serve rXMLHTTP
instead. However I have tried that as well and it still freezes up the
whole
thing (i.e. the site just keeps loading forever).

I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(

I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.

so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not freezing
up the page? Please help!!!!!!

Vanessa


Yes you should be using ServerXMLHTTP. You should also be using the version
specific MSXML.ServerXML HTTP.3.0.

Are you making a request back to your own server? If so it is prone to
deadlock. If you have ASP debugging on then you can't make a request to
another ASP page on your own server from ASP.
--
Anthony Jones - MVP ASP/ASP.NET

Thanks Anthony for your response.

for example:

on CheckCustomer.a sp:

'process some data

PostURL = linkhome & "/nav/GetCustomer.asp ?CustomerID=" &CustomerID
Set xml = Server.CreateOb ject("Microsoft .XMLHTTP")
xml.Open "POST", PostURL, false,"",""
xml.Send
getcustomXML = xml.responseTex t
Set xml = Nothing

'process more data based on the getcustomXML

Yes, I am making a request back to my own server. Both the calling script
CheckCustomer.a sp and the GetCustomer.asp are making read/write request to
our SQL server. So if that's the result that's cause the freezing, how can I
turn OFF the ASP debugging?

Thanks Much!
>
Jul 12 '07 #5
oh Anthony,

sorry I have one more question - what ASP debugging does? If I turn it off
will it affect anything?

"Anthony Jones" wrote:
>
"Vanessa" <Va*****@discus sions.microsoft .comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
I've been searching everywhere online to find an alternative method
besides
using Microsoft.XMLHT TP (as it freezes the server up alot!!) but with no
luck
at all.

I am using server side ASP, and some said to use Microsoft.Serve rXMLHTTP
instead. However I have tried that as well and it still freezes up the
whole
thing (i.e. the site just keeps loading forever).

I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(

I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXM LHTTP.3.0.

so do anyone know if MSXML2.ServerXM LHTTP.3.0 will help? i.e. not freezing
up the page? Please help!!!!!!

Vanessa


Yes you should be using ServerXMLHTTP. You should also be using the version
specific MSXML.ServerXML HTTP.3.0.

Are you making a request back to your own server? If so it is prone to
deadlock. If you have ASP debugging on then you can't make a request to
another ASP page on your own server from ASP.
--
Anthony Jones - MVP ASP/ASP.NET
Jul 12 '07 #6
=?Utf-8?B?VmFuZXNzYQ= =?= wrote on 12 jul 2007 in
microsoft.publi c.inetserver.as p.general:

[...]
I am using server side ASP,

On your own machine via localhost:// or on the web?


On my company's website.
>>
and some said to use
Microsoft.Serve rXMLHTTP instead. However I have tried that as well
and it still freezes up the whole thing (i.e. the site just keeps
loading forever).

Wouldn't that be because you made some error in your code?

Why not show your code, just an minimized example that does what you
say.

I manage quite well with asp-vbscript:

Set objXMLHTTP = Server.CreateOb ject("Microsoft .XMLHTTP")


Here is one section of my script:

PostURL = linkhome & "nav/GetCustomer.asp ?CustomerID=" &CustomerID
Set xml = Server.CreateOb ject("Microsoft .XMLHTTP")
xml.Open "POST", PostURL, false,"",""
xml.Send
getcustomXML = xml.responseTex t
Set xml = Nothing

It seems like it got stuck at "xml.Send" line
You seem to need TWO servers, one for the asp file with the
Server.CreateOb ject() in it [server1], and another [server2] where the
file the PostURL is pointing to, is located.

[If it is one and the same server, why not access the database directly]

Is this a correct assumption?
(i.e. the site just keeps loading forever).

Site's do not load, perhaps the server does, or the browser,
but in the case of Microsoft.XMLHT TP,
how do you know the supposed freezeup [of the server?] is caused by
that?

Actually I still can't figure out the exact cause of the freezeup :(
so please help!
I would start by using the above code in [server1] to fetch a simple page
in [server2] containing only some text, like "Hello world".

If that gets through, using

response.write getcustomXML

you could try to fetch something simple from your database on server1.

That way you either get lucky when all is working, or you know where you
get stuck, methinks.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 12 '07 #7


"Vanessa" <Va*****@discus sions.microsoft .comwrote in message
news:D8******** *************** ***********@mic rosoft.com...
oh Anthony,

sorry I have one more question - what ASP debugging does? If I turn it off
will it affect anything?
Yeah you won't be able to debug your ASP with a script debugger.

--
Anthony Jones - MVP ASP/ASP.NET

Jul 13 '07 #8
Anthony Jones wrote on 14 jul 2007 in
microsoft.publi c.inetserver.as p.general:
I think we need to establish a few things to summarize where we are at
this point.

You are having a lock up occuring when making an XMLHTTP request to
another ASP page on the same server. You've switched to ServerXMLHTTP
which is the correct thing to do but that hasn't fixed it.
The Question remains if it is ever necessary to do a serverside XMLHTTP
request to another ASP page on the same(!!!) server.

I think not. All things that can be done,
can also done by straight code on the requesting page.

Correct me with an example, if I am wrong.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 14 '07 #9

"Evertjan." <ex************ **@interxnl.net wrote in message
news:Xn******** ***********@194 .109.133.242...
Anthony Jones wrote on 14 jul 2007 in
microsoft.publi c.inetserver.as p.general:
I think we need to establish a few things to summarize where we are at
this point.

You are having a lock up occuring when making an XMLHTTP request to
another ASP page on the same server. You've switched to ServerXMLHTTP
which is the correct thing to do but that hasn't fixed it.

The Question remains if it is ever necessary to do a serverside XMLHTTP
request to another ASP page on the same(!!!) server.

I think not. All things that can be done,
can also done by straight code on the requesting page.

Correct me with an example, if I am wrong.
You're not wrong. I've already demonstrated how an ASP to ASP post can be
rearranged into a shared include and the reasons why it should.

The question that remains outstanding as I see it is why is this locking up?
Whilst I still think the self-post may be a candidate I'm no longer
convinced. In a test environment with debugging turned off there is no
reason for this to fail.

Since the final product is to actually be ASP to ASP.NET my original
suggestion isn't appropriate.
--
Anthony Jones - MVP ASP/ASP.NET
Jul 14 '07 #10

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

Similar topics

4
3236
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll via the "Microsoft.XMLHTTP" object. The results of the isapi dll will be displayed to the user without refreshing the asp page. I have a code snippet below for the isapi call. WHat is happening is that the xmlhttp.responseText from the snippet...
12
13788
by: Botan Guner | last post by:
Hi all, Here is the problem, i'm using Microsoft.XMLHTTP for ie and XMLHttpRequest for mozilla, on my local server which is win2000 server i've no problem with that but when i uploaded the file to the web server of our company which is redhat 9 i still have no problem with mozilla but the ie gives an error like this, System error: -1072896658
1
6571
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the server don´t response right. xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
3
7655
by: Tim::.. | last post by:
Can someone please help me with this annoying little problem... I use to use Microsoft.XMLHTTP in asp to pull html from other websites and inbed it into my website but for some reason I can't seem to find out how to do it in ASP.NET??? I did find this example in C# but am not 100% sure it will do the same thing??? I also want the following code in VB rather than C#
39
7380
by: tydbowl | last post by:
I have a problem where the below code chunk causes handle leaks on some machines. The leak APPEARS to be handles to the registry key: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap The below code runs on a timer running several times per second and after about 15-30 minutes or so, it runs out of handles and crashes IE. I found an article on msdn discussing how setting properties in this
1
4917
by: Ike | last post by:
Ive copied an online example for writing out a php file, programmatically, then would like to re-display that data in a browswer window that automatically refreshes as the data file (getdata.php, which is the file I am programmatically rewriting to elsewhere) gets changed. I am trying to use AJAX and JSON to do this. I have copied an example of using HttpRequest Object as the backbone of this from...
13
25213
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
2
4329
by: Skyblue | last post by:
I use Microsoft.XMLHTTP to access htm or asp pages on a central web site from other satellite sites. In this way, the same content can be displayed on a dozen websites and I only need to update one file in order to change the content displayed on all the websites. I have noticed that when I update the text in the file which is accessed by Microsoft.XMLHTTP (testXML.htm in the example below), the updates do not appear for some time on the...
7
6253
by: czechboy | last post by:
Hi, I would like to send DELETE request to google calendar but nothing of this works: xmlhttp.open("POST",del,false); xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE"); xmlhttp.send(); or xmlhttp.open("DELETE",del,false); xmlhttp.send();
0
8438
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
8863
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
8779
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...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1761
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.