none
Cannot load 3rd party ActiveX Controls in .NET 4.0 RRS feed

  • Question

  • Hi,

    I have a third party ocx activeX control on my asp.net page. It was all good when the project was running on .net 3.5. Recently, we migrated to .NET 4.0 and seems like this control is not working any more. I don't see any errors when I load the page which has this activeX control but the div which is holding this control shows nothing. That is, the control is not loading.

    Does any body have the same issue? Any help would be great. 

    Does it has to do anything with the ActiveXObject? Right now, I am using 

    var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0")

    Thanks,

    Rob



    A

    Monday, April 2, 2012 11:16 PM

Answers

  • I don't think this has anything to do with the .Net version used on the server. Test the control with astatic HTML page.


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP


    Monday, April 2, 2012 11:40 PM
  • Hi Cholleti,

    As Sheng said, there is nothing to do with .Net framework. A Web page that contains a custom ActiveX control may not load as expected in Internet Explorer due to defense in depth changes introduced in cumulative security update 896688 (MS05-052).

    For resolution of this, plese check:

    http://support.microsoft.com/kb/909738


    Regards, http://shwetamannjain.blogspot.com

    • Proposed as answer by Shweta Jain (Lodha) Tuesday, April 3, 2012 3:46 AM
    • Proposed as answer by Mike FengModerator Wednesday, April 4, 2012 8:32 AM
    • Marked as answer by cholleti Tuesday, April 10, 2012 11:26 PM
    • Unmarked as answer by cholleti Tuesday, April 10, 2012 11:26 PM
    • Marked as answer by cholleti Tuesday, April 10, 2012 11:27 PM
    Tuesday, April 3, 2012 3:46 AM

All replies

  • I don't think this has anything to do with the .Net version used on the server. Test the control with astatic HTML page.


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP


    Monday, April 2, 2012 11:40 PM
  • Hi Cholleti,

    As Sheng said, there is nothing to do with .Net framework. A Web page that contains a custom ActiveX control may not load as expected in Internet Explorer due to defense in depth changes introduced in cumulative security update 896688 (MS05-052).

    For resolution of this, plese check:

    http://support.microsoft.com/kb/909738


    Regards, http://shwetamannjain.blogspot.com

    • Proposed as answer by Shweta Jain (Lodha) Tuesday, April 3, 2012 3:46 AM
    • Proposed as answer by Mike FengModerator Wednesday, April 4, 2012 8:32 AM
    • Marked as answer by cholleti Tuesday, April 10, 2012 11:26 PM
    • Unmarked as answer by cholleti Tuesday, April 10, 2012 11:26 PM
    • Marked as answer by cholleti Tuesday, April 10, 2012 11:27 PM
    Tuesday, April 3, 2012 3:46 AM
  • Thanks Sheng and Shweta for ur replies.

    So, you think that if this security update is not pushed, it should work as expected? Strange, because, this update was released in Sep 2011 and even with this update pushed, it worked with 3.5 .net version. 

    I went thru the link and since its a 3rd party control, I cannot recompile it. The other thing I dont understand is, since its an internet explorer security update thats causing this, how will tweaking a registry on the server (suggested as a work around) would work?

    As, Sheng suggested, I will try to load in a static html page and will let you know guys.

    Thanks,

    Rob


    A

    Tuesday, April 3, 2012 12:10 PM