none
Using the .NET 1.1 com interop in .NET 2.0? RRS feed

  • Question

  • Hi there,

    I am having some real major issues with getting an activex COM library to fire events in VS2005 but its ok in VS2003

    SO

    I was searching around and i wonder if its possible to

    Use the .NET 1.1 com interop in .NET 2.0?


    My idea is really ... that if it worked in VS 2003 then to make it work in VS 2005 then if i could use the interop com from NET 1.1 (vs2003) then i may have a chance

    Thanks in advance

    Ian
    Friday, June 2, 2006 9:40 AM

All replies

  • I did try putting this in,
     <startup>
        <supportedRuntime version="v1.1.4322" />
      </startup> 

    but it stops my application from running saying
     
    strong name validation failed for assembly

    any ideas?

    Ian
    Friday, June 2, 2006 9:57 AM
  • Make sure the events are attached. They will not fire until they are attached. Follow these steps if they are not attached:


    suppose myControl is your instance name then u can catch the event myControlEvent in following way:

    1. Write myControl.myControlEvent +=
    2. IDE asks you to press TAB key twice to write event handle to catch the event myControlEvent
    3. So Press TAB key Twice
    4. Write code to hande the event

    Friday, June 2, 2006 11:13 AM
  • Thanks.. yes they are.. Infact its a vs2003 app, and i migrated it to 2005.

    I also wrote another small app from scratch in 2005 and in each case in vs 2005 it never fires the event.


    Friday, June 2, 2006 11:27 AM