Msxml3.dll error '800c0008' the system cannot locate the resource specified. Solution

Source: Internet
Author: User
Msxml3.dll? Comment '800c0005'

The system cannot locate the resource specified.

/Plugins. asp ?? Limit 165
This problem usually occurs when collecting information or using XMLHTTP to update webpages statically.

Set objxmlhttp = server. Createobject ("Microsoft. XMLHTTP") 'is generally used in versions earlier than msxml2.6.
'Set objxmlhttp = server. Createobject ("msxml2.xmlhttp") 'is supported by msxml3.dll +

But now all errors are reported.
I searched all the technical forums and search engines I know on the Internet, and there may be many problems. The following is a summary:

(1) That is the most basic. Your server does not support XMLHTTP or the component version is low. You need to download the corresponding components. This is generally not required by servers. In most cases, XMLHTTP is supported, so this situation is rare.

(2) The msxml3.dll file may be damaged or the file has insufficient permissions (this may be less likely). If the file is damaged, you can download the msxml3.dll file of the corresponding system environment to replace it on the Internet (2003 the system seems to be under C: // Windows/system32). You need to disable the corresponding services such as IIS to overwrite the file.

(3) firewall or anti-virus software disables the corresponding port. The specific setting depends on different software. You can try to disable the firewall or anti-virus software and then test whether the problem is true.

(4) register the component again. Start> Run: regsvr32 msxml3.dll

(5) DNS resolution errors: Check your network settings or access through correct domain name resolution

(6) Check your IP address filtering settings (this is not too well understood)

(7) the other party's resources are invalid. For example, if the other party's information is not found during the collection, the program may be terminated incorrectly. This error occurs when the open method of the XMLHTTP component is called and then the send method is used. When the URL parameters of the open method cannot be accessed, the error 8000005 is returned. Once such an error occurs, the application will be terminated and the operation cannot be continued. Most of the programs are written as follows:
Function functionname (pararm ...)
Dim HTTP
Set HTTP = server. Createobject ("msxml2.xmlhttp. 4.0 ")
With HTTP
. Open "get", httpurl, false
. Send
End
If HTTP. readystate <> 4 then
Set HTTP = nothing
......
Exit Function
End if
End Function
Most programs use the readystate attribute of XMLHTTP to determine the returned status from the server. In fact, this may not be suitable. In many cases, errors in the program flow cannot be detected by using the readystate attribute. When an error occurs, the program will still be terminated. In fact, by modifying the code above, you can skip the errors encountered during program execution and continue running the program. The modification code is as follows:
Function functionname (pararm ...)
Dim HTTP
Set HTTP = server. Createobject ("msxml2.xmlhttp. 4.0 ")
With HTTP
. Open "get", httpurl, false
. Send
End
On Error resume next
If HTTP. Status <> 200 then
Set HTTP = nothing
......
Exit Function
End if
End Function
When the send method produces an error, the value of readystate may be 4, but the return value of status must not be 200. Haha, I have tracked readystate and status many times and it is worth the previous results. There may be errors. I have not found them yet.
Hope the above program solution can help you !! If you have a better solution, please let me know.
I use msxml2.xmlhttp. 4.0 as an example to describe the program and it is also suitable for XMLHTTP components of other versions. To check which versions of XMLHTTP components have been installed in your system, go to hkey_classes_root in the registry.

(8) Go to the server to set your IE Security Options (set the level to medium or low) and add the domain name you want to obtain to a trusted website.

(9) I have tried the above methods after reading them, but they have not been solved. So after Microsoft downloaded MSXML 4.0 Service Pack 2 (Microsoft XML Core Services) and hotfix for MSXML 4.0 Service Pack 2-kb832414-Simplified Chinese (kb832414_msxml4.0_x86.exe), the problem was finally solved !!!

(10) If your situation cannot be solved by any of the methods above, it would be too difficult. Please go online and find other possible situations, if you don't want to continue looking for it, reload your IIS or simply reinstall the system (you can try to restart the system before doing this, maybe it may seem lucky to use it again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.