473,396 Members | 1,748 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,396 software developers and data experts.

COMException in ServerXMLHTTP40

Hi,

I've been trying to post some XML using the above the component but keep
getting the following Exception:

System.Runtime.InteropServices.COMException (0xC00CE56D)

The code is:

_postSystem = New MSXML2.ServerXMLHTTP40

xmlString = FetchXMLClientDetails(clientDetails)
xmlDocument.loadXML(xmlString)

_postSystem.open("POST", "https://someSite/blahblah.cfm", False)
_postSystem.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")

_postSystem.send(xmlDocument)

The FetchXMLClientDetails just returns XML in the form <tag>XXXX</tag>, etc.

Any help would be appreciated.
Nov 21 '05 #1
3 3300
Using MSXML in .NET applications through COM interoperability can result in
unexpected problems. Take a look at

Use of MSXML is Not Supported in .NET Applications
http://support.microsoft.com/default...b;en-us;815112

You can get the same functionality through the System.Web.HttpWebRequest
class, take a look at

Implement Common MSXML Tasks in System.xml By Using Visual C# .NET
http://support.microsoft.com/default...b;en-us;330589

Cheers,
John Wadie
Nov 21 '05 #2
Do you have the latest service pack for the .NET framework? I think this is
a bug that was fixed recently

.NET Framework 1.0 Service Pack 3
http://www.microsoft.com/downloads/d...761-4a92-4106-
a9bc-83e78d4abc5b&DisplayLang=en

.NET Framework 1.1 Service Pack 1
http://www.microsoft.com/downloads/d...54f-088e-40b2-
bbdb-a83353618b38&DisplayLang=en

.NET Framework 1.1 Service Pack 1 for Windows Server 2003
http://www.microsoft.com/downloads/d...ef7-2cb7-4864-
8623-a1038563df23&DisplayLang=en

Regards,
John Wadie
Nov 21 '05 #3


"John Wadie" wrote:
Using MSXML in .NET applications through COM interoperability can result in
unexpected problems. Take a look at

Use of MSXML is Not Supported in .NET Applications
http://support.microsoft.com/default...b;en-us;815112

You can get the same functionality through the System.Web.HttpWebRequest
class, take a look at

Implement Common MSXML Tasks in System.xml By Using Visual C# .NET
http://support.microsoft.com/default...b;en-us;330589

Cheers,
John Wadie


Cheers for that John,

Had I known it would have saved me days!!

Tried the sample in C# (and VB for that matter), now get a new error:

a System.Net.WebException - The underlying connection was closed: Unable to
connect to the remote server.

I don't see any Open() method in the object!

Any ideas as to the cause?

Best Regards,
Gavin
Nov 21 '05 #4

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

Similar topics

3
by: Damaji Jambhale | last post by:
COMException: Catostrphic failure When I added a "dll" reference in the web project. I was able to instantiate the class OK. But when I tried to set the properties, it failed with...
1
by: Steven | last post by:
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException ...
2
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the...
2
by: Bassel Tabbara | last post by:
I wrote the following code: oApp = new Outlook.Application(); oApp = new Outlook.Application(); oNameSpace= oApp.GetNamespace("MAPI"); oNameSpace.Logon(null,null,true,true); //gets defaultfolder...
0
by: Mark Sisson | last post by:
"Daylor" <Daylor@012.net.il> wrote in message news:<3ee62275@news.012.net.il>... > Catch e As COMException > > MessageBox.Show(CStr(e.ErrorCode And &HFFFF)) > > the value i get from -e.ErrorCode...
3
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for...
12
by: K. Wilder | last post by:
In my ASP.Net application I'm trying to contact a host that does not have a web service, i.e.: a file with the asmx extension such as, anything.asmx. They do have an URL to be contacted by VB 6.0...
0
by: nokia33948 | last post by:
Hi, I am trying to post some data from a VB.net application to an ASP page. This is the routine to post data: sPostString = "CD=" & Now & "&OWNNumber=" & Globals.OwnNumber & "&Pos=" &...
2
by: ortega23 | last post by:
Hi, I am trying to obtain the column number of the parent of a cell, if the cell is a linked cell (i.e. its value depends on another cells value). I try to read "Precedents"(parent cells) of...
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: 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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.