none
The version of ActiveX made of C# appears as PresentaionHost.exe's one in IE Add-on manager RRS feed

  • Question

  • Hello,

    I'm making an ActiveX control as .NET Class Library by C#.

    The version of ActiveX appears as PresentaionHost.exe's one in IE Add-on manager.

    Do you have any solution?


    Toshimitsu Takahashi
    Thursday, August 4, 2011 1:42 AM

Answers

  • I created an IE add-on using C# Class Library (of version 1.0.0.0) in .NET 2.0, but IE shows the add-on information as following:

     

    Name:                   MyTest.BHO

    Publisher:              Not Available

    Type:                   Browser Helper Object

    Version:                4.0.31106.0

    File date:             

    Date last accessed:     ‎2011‎年‎8‎月‎9‎日, ‎9:56

    Class ID:               {8A194578-81EA-4850-9911-13BA2D17EFBD}

    Use count:              0

    Block count:            1

    File:                   mscoree.dll

    Folder:    

     

    As you can see, the add-on version is 4.0.31106.0, which is the version of mscoree.dll;

     

    From my understanding, when IE try to access C# add-on, mscoree.dll will be loaded by IE, and then mscoree will start CLR to run actual code in C# add-on; so, in other words, IE just know mscoree.dll, but not our C# add-on.

     

    If we want to specify add-on versions, you can create a C++ library as IE add-on, in the C++ library, host CLR runtime and load .NET assembly to execute.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by tilfin Wednesday, August 10, 2011 1:23 AM
    Tuesday, August 9, 2011 2:09 AM

All replies

  • Hi,

     

    Thank you for your post.

     

    From my understanding, you have created an ActiveX control using C#/.NET, but what do you mean by "The version of ActiveX appears as PresentaionHost.exe's one in IE Add-on manager."?


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, August 4, 2011 5:33 AM
  • I create ActiveX control as C# Class Library.
    I also create MSI installer containing the distributed DLL file to 'regasm' the DLL file.

    I place .cab file archived the MSI file and ax.inf to kick the installer on IIS.
    MSI installer is started by accessing the .cab file through IE.
    C# Class Library is finally installed as ActiveX.

    When opening Add-on manager in IE, the add-on version
     does not equals the assembly version of C# Class Library.
    I guess it nearly is .NET Framework Version.
    My final conclusion is the version of PresentationHost.exe displayed there.

    The solution that I request is the way to display
     the version of C# Class Library-self in Add-on manager.

    Thank you.


    Toshimitsu Takahashi
    Thursday, August 4, 2011 6:12 AM
  • I created an IE add-on using C# Class Library (of version 1.0.0.0) in .NET 2.0, but IE shows the add-on information as following:

     

    Name:                   MyTest.BHO

    Publisher:              Not Available

    Type:                   Browser Helper Object

    Version:                4.0.31106.0

    File date:             

    Date last accessed:     ‎2011‎年‎8‎月‎9‎日, ‎9:56

    Class ID:               {8A194578-81EA-4850-9911-13BA2D17EFBD}

    Use count:              0

    Block count:            1

    File:                   mscoree.dll

    Folder:    

     

    As you can see, the add-on version is 4.0.31106.0, which is the version of mscoree.dll;

     

    From my understanding, when IE try to access C# add-on, mscoree.dll will be loaded by IE, and then mscoree will start CLR to run actual code in C# add-on; so, in other words, IE just know mscoree.dll, but not our C# add-on.

     

    If we want to specify add-on versions, you can create a C++ library as IE add-on, in the C++ library, host CLR runtime and load .NET assembly to execute.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by tilfin Wednesday, August 10, 2011 1:23 AM
    Tuesday, August 9, 2011 2:09 AM
  • Thank you so much for your support!

    That explains it. I decided to give up it.


    Toshimitsu Takahashi
    Wednesday, August 10, 2011 1:27 AM