Re: SecurityPermission failed on ActiveX when accessing remote server
From: Anders W. Gj?re (anderswg_at_gmail.com)
Date: 07/22/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: LDAP binding"
- Previous message: Mike: "LDAP binding"
- In reply to: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Next in thread: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Reply: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 22 Jul 2004 14:35:32 -0700
"Nicole Calinoiu" <nicolec@somewhere.net> wrote in message news:<eLpQ629bEHA.2520@TK2MSFTNGP12.phx.gbl>...
> Anders,
>
> Since you haven't mentioned exactly what your code is doing when the
> exception is raised, it's a wee bit difficult to even begin to guess what
> permission is being denied. That said, using an ActiveX control might be
> overkill if you merely need to make HTTP requests to multiple servers from
> within one page. Have you considered using frames or iframes instead?
>
Yes, I tried to use javascript to control a frame or iframe, but when
the frame enters a different domain, i have no access to the
frame-object anymore.
The main purpose is to access a few different webservers, and present
the result on one page.
ex:
alert(myFrame.document.form1.innerHTML); // <- this line works fine
myFrame.location = "http://www.somedomain.com";
// maybe wait for page to be redirected
// and when loaded:
alert(myFrame.document.form1.innerHTML); // <- this line gives me an
"Access is denied" exception
I have also tried to use MSXML2.XMLHTTP and similar:
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
xmlhttp.open("GET", "http://www.somedomain.com", false);
xmlhttp.send();
But this gives me an "Permission denied" exception.
So my thoughts was if i could make an ActiveX that were thrusted by
the browser to access remote servers, it would work.
Or is there a way to programaticly add a website to the "Trusted
zone", giving the user a question if he/she wants to approve the code?
anders
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: LDAP binding"
- Previous message: Mike: "LDAP binding"
- In reply to: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Next in thread: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Reply: Nicole Calinoiu: "Re: SecurityPermission failed on ActiveX when accessing remote server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|