Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

COMException in ServerXMLHTTP40

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gavin Sullivan - 14 Sep 2004 11:39 GMT
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.
John Wadie - 14 Sep 2004 13:10 GMT
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.aspx?scid=kb;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.aspx?scid=kb;en-us;330589

Cheers,
John Wadie
Gavin Sullivan - 17 Sep 2004 15:55 GMT
> Using MSXML in .NET applications through COM interoperability can result in
> unexpected problems. Take a look at
[quoted text clipped - 10 lines]
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.