Error Creating Object Msxml2.serverxmlhttp.5.0
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ActiveX component can't create object: 'MSXML2.DOMDocument' up vote 6 down vote favorite 2 I am trying to create an instance of the object Msxml2.DOMDocument.4.0, but I am getting the following error: ActiveX component can't create object: 'MSXML2.DOMDocument' The error occures in this line: Set xmlDoc = CreateObject("Msxml2.DOMDocument.4.0") How can I solve this problem? Thank you for your helps windows-7 vbscript 64bit activex share|improve this question asked Apr 23 '13 at 10:32 Kaja 72342035 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote accepted Probably the specific version 4.0 of Msxml2.DOMDocument is not (properly) installed on the computer your script runs on. Try to create the version-independent object: Set xmlDoc = CreateObject("Msxml2.DOMDocument") This should give you the version that 'works' on your machine. If this fails, try Set xmlDoc = CreateObject("Msxml2.DOMDocument.6.0") or experiment with the version number. Use TypeName(xmlDoc) to get a hint wrt the effective version. P.S. If your problem is caused by 32 vs. 64 bit troubles, this may give you further hints for things to check. share|improve this answer edited Apr 23 '13 at 11:37 answered Apr 23 '13 at 11:27 Ekkehard.Horner 30k11934 add a comment| up vote 4 down vote Check if msxml4.dll exists on your system. and (re-)register the library if it does: cd %SystemRoot%\system32 regsvr32 /u msxml4.dll regsvr32 msxml4.dll You need admin privileges to do this. share|improve this answer answered Apr 23 '13 at 14:34 Ansgar Wiechers 85.4k1164102 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answe
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > ActiveX component can't create object: 'MSXML2.ServerXMLHTTP' Want to Advertise Here? Solved http://stackoverflow.com/questions/16167111/activex-component-cant-create-object-msxml2-domdocument ActiveX component can't create object: 'MSXML2.ServerXMLHTTP' Posted on 2007-01-04 Web Development 1 Verified Solution 10 Comments 14,923 Views Last Modified: 2011-08-18 Hi, I am trying to create an instance of the object MSXML2.ServerXMLHTTP in ASP, but I am getting the following error: Error Type: Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'MSXML2.ServerXMLHTTP' This https://www.experts-exchange.com/questions/22111526/ActiveX-component-can't-create-object-'MSXML2-ServerXMLHTTP'.html code was working before we updated IIS to a higher version. This is part of the code that I am using. Any Ideas? Thanks '============================ Transactions =================== PARTNERLOGIN = WEBSERVICE + "PartnerLogin" '========================================================================= 'call webservice to get login Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") Set xmlDOC = CreateObject("MSXML2.DOMDocument") Set xmlDOC_Res = CreateObject("MSXML2.DOMDocument") xmltext ="
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev https://msdn.microsoft.com/en-us/library/ms753804(v=vs.85).aspx centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Data Access and Storage MSXML MSXML SDK Overview MSXML SDK Overview Building MSXML Applications Building MSXML Applications Building MSXML Applications About the MSXML SDK MSXML Roadmap What's New in MSXML Building MSXML Applications MSXML API History GUID and ProgID Information Dependencies in MSXML error creating Tips for Converting Samples to VBScript Sample XML File (books.xml) MSXML Security Overview Installing and Redistributing MSXML Handling MSXML Errors TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Building MSXML Applications This topic introduces the issues that you need to address when error creating object building your MSXML applications. OverviewThere are a variety of ways that you can use MSXML to build applications that process XML:You can process XML as part of a web application, displaying the results in an internet browser such as Internet Explorer. You can either use the MIME viewer or a scripting language.You can use the Document Object Model (DOM) using a scripting language as a stand-alone process.You can use the DOM or Simple API to XML (SAX2) using C++ language. You can also use either API in any language or development system that can consume ActiveX controls or COM objects.Customer feedback has indicated that it is often difficult for developers to build and run MSXML applications. Sometimes developers find they are using a different version of the library than they expected. Sometimes it is difficult simply to get their application to run. There are a number of issues that you need to take into consideration when building your application. This topic lists the issues and provides guidance.About the ExamplesMost of the examples that the MSXML SDK provides work as delivered with either MSXML 6.0 or MSXML 3