MSXML4.dll: Access is denied. ActiveXObject("Msxml2.XMLHTTP.4.0") - Does anyone have a solution for this?</END>

Hi All,

I'm receiving and 'MSXML.dll Access is denied' with the following HTML.  Thanks for the help.

Here's the code:

<body onload="init()">
<input value="view Yahoo" type="button" onclick="alert(document.getElementById('yahoo').innerHTML);">
function LoadPage(theURL,theID){
   var objSrvHTTP;
         objSrvHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0");
              objSrvHTTP = new ActiveXObject("Msxml2.XMLHTTP");
                            objSrvHTTP = new ActiveXObject("Microsoft.XMLHTTP");
                    alert("ok you have Microsoft.XMLHTTP")
                    alert("you need install MSXML 4.0,");
     } ("GET",theURL,false);
       objSrvHTTP.send ("");


function init(){

<table width="555" cellspacing="0" cellpadding="0" border="3">
    <td valign="top" id="yahoo">nothing but net</td></ALETR>
    <td valign="top" id="ebay">nothing but net</td>


<FORM id="FORM1" method=post runat="server">

<INPUT id=ihHTTP1 type=hidden size=-5 value=null name=iHTTP1 runat="server">


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It may well be that the ASPNET account don't have permissions on the folder containing MSXML4.dll. This is normally C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32 depending on Windows version. Check the directory permissions, and make sure that ASPNET has read/execute permissions on this directory.
paygoAuthor Commented:
Thanks - It works using a different site such as - so I think the security is OK
You mean with a different site's URL passed to your LoadPage function?
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

paygoAuthor Commented:
yes - just replace  LoadPage("","yahoo");
with -  LoadPage("","yahoo");

and this works.  wondering if is executing something not allowed here?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I've seen this as well. It happens when you try to access a page that gets redirected elsewhere. In your example, get a redirect to

We've been able to reproduce this error repeatedly.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.