Re: SecurityPermission failed on ActiveX when accessing remote server

From: Anders W. Gj?re (anderswg_at_gmail.com)
Date: 07/22/04


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



Relevant Pages

  • RE: Explorer errors
    ... The stored exception information can be accessed via .ecxr. ... Frame IP not in any known module. ... Also it could be the work of Add-Ons so try to clean up and disable ... Click on General Tab and you will see a Button called ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Explorer errors
    ... Download memtest from here: ... User Mini Dump File: Only registers, stack and portions of memory are ... The stored exception information can be accessed via .ecxr. ... Frame IP not in any known module. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: program not displaying frame
    ... > exception, etc., for what that's worth. ... > produces an error and then does in fact show a frame. ... of the enclosing class (in this case, it has default access scope). ... For my JVM on Windows 2003, it simply runs fine, ...
    (comp.lang.java.help)
  • RE: Explorer errors
    ... Thanks for your reply Nass. ... User Mini Dump File: Only registers, stack and portions of memory are ... The stored exception information can be accessed via .ecxr. ... Frame IP not in any known module. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Oh boy, how did we miss this...
    ... > frame also stores a pointer to the Object, ... I wouldn't say it uses exception frames "to create objects"; ... ClassCreate gets called by the outermost constructor in an object ... ClassCreate's exception handler can pass it to the destructor. ...
    (comp.lang.pascal.delphi.misc)