Click here to Skip to main content
13,458,661 members
Rate this:
Please Sign up or sign in to vote.
I have written an ActiveX component to get list of .Net frameworks installed on client's Machine.
When i use to test it with simple HTML page, it goes fine but when i run it in ASP.Net project then it says "Access is denied" while creating its object in javascript.

here is the javascript code, i am calling it on page body's onload

function Onload() {
        // var obj = document.DemoActiveX;
        var obj = document.getElementById("DemoActiveX");
        //Returns: [object HTMLObjectElelment]
        if (obj != undefined && obj != null) {

            try {    //alert(obj.GetClientOS());
            } catch (e) {
                //Returns: Member not found


Note: in stand alone HTML page it is running very fine.
Posted 12-Dec-12 23:51pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180323.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100