[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 950
  • Last Modified:

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

Hi,

I am runnning the following code and receiving a 'msxml4.dll: Access is denied'.

Does anyone have the work around code for this? - Thanks - Here's the code:

<HTML>
  <HEAD>
</HEAD>
<body onload="init()">
<input value="view Yahoo" type="button" onclick="alert(document.getElementById('yahoo').innerHTML);">
<script>
function LoadPage(theURL,theID){
   var objSrvHTTP;
    try{
         objSrvHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0");
                  
     }
     catch(e){    
          try{
              objSrvHTTP = new ActiveXObject("Msxml2.XMLHTTP");
                  }
           catch(e){
               try{              
                            objSrvHTTP = new ActiveXObject("Microsoft.XMLHTTP");
                    alert("ok you have Microsoft.XMLHTTP")
               }                  
               catch(e){              
                    alert("you need install MSXML 4.0, http://www.microsoft.com/downloads/");
                    return;
               }    
          }
     }
       objSrvHTTP.open ("GET",theURL,false);
       objSrvHTTP.send ("");
       document.getElementById(theID).innerHTML=objSrvHTTP.responseText;
       document.all.FORM1.ihHTTP1.value=objSrvHTTP.responseText;
}

function init(){
 
     LoadPage("http://www.fidelity.com","yahoo");
 
}
</script>


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

<TABLE><TR><TD>

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

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

</TD>
</TR>
</TABLE>

</body>
</HTML>
0
paygo
Asked:
paygo
  • 11
  • 5
  • 4
1 Solution
 
archrajanCommented:
You must have MSXML4 SP2 installed
0
 
archrajanCommented:

1.From the Start menu, click Run, type "mmc" and then press ENTER.
2. From the File menu, select Add/Remove Snap-In.
3. In Add/Remove Snap-In, click Add.
4. Add the "Group Policy" snap-in to the Console Root.
5. Select Local Computer Policy -> User Configuration -> Windows Settings -> Internet Explorer Maintenance -> Security
6. Click on "Security Zones and Content Ratings"
7. For "Security Zones and Privacy", select the "Import..." radio button and click "Modify Settings"
8. Set "Submit nonencrypted form data" to "Enable"
0
 
archrajanCommented:
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
archrajanCommented:
0
 
paygoAuthor Commented:
Thanks  archrajan,

I did this fix and still have the same problem. Should I use a different version of MSXML4.dll /
0
 
archrajanCommented:
do try that then :)
0
 
archrajanCommented:
sometimes Frontpage extensions prevent writing permissions
0
 
archrajanCommented:
check this post
0
 
archrajanCommented:
Try use MSXML2.ServerXMLHTTP.3.0 instead of MSXML2.ServerXMLHTTP.4.0
0
 
archrajanCommented:
0
 
paygoAuthor Commented:
Thanks - the xml works when the site site is changed.
change this
 LoadPage("http://www.fidelity.com","yahoo");
to
 LoadPage("http://www.yahoo.com","yahoo");
 


 
0
 
archrajanCommented:
good for you.. enjoy:)
0
 
devicCommented:
paygo, if you call http://www.fidelity.com it will redirected to https://www.fidelity.com/
HTTPS!
0
 
paygoAuthor Commented:
Thx - so why would that cause an MSXML4.dll access denied error?
0
 
devicCommented:
0
 
paygoAuthor Commented:
so- the redirect causes the problem. The redirect must occur after my server receives the first reply.
0
 
devicCommented:
if you do first request:

GET / HTTP/1.1

server answer is:
============
HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/3.6
Date: Wed, 01 Dec 2004 04:57:47 GMT
Location: https://www.fidelity.com/
Content-length: 0
Connection: close
0
 
paygoAuthor Commented:
Thanks devic - So I should be able to see each reply in if I break at the  at the correct spot  and

view / interpret / reply to the the objSrvHTTP.responseText

If true, this could work for the difficulat sites - The One's that required Javascript enabled ..

before reposting logic.



0
 
devicCommented:
thank you,
this one should help you:http://www.blunck.info/iehttpheaders.html
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 11
  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now