locked
Reg Free Com: activating .net-component trouble in .Net 4.0 RRS feed

  • Question

  • Hi all

    Trying to get a grip on creating a reg free com .net 4.0 server to unmanaged client on a non-admin computer. To this end have been looking at:

    http://msdn.microsoft.com/en-us/library/ms973915.aspx

    and trying to recreate this on windows xp SP3 with VS2010.

    The steps taken where:

    1. Extract all the relevant files from the code sample - checking that 'as is' the cpp client works (which it does).

    2. Storing the old dll recompile the C# class with the build.cmd and check that the client works: HRESULT 0x8013101b

    3. Extract a tlb from the new dll and recompile the client to target .net 4: HRESULT 0x8013101b

    3.b Check old dll works with new client (which it does)

    4. Rejig dll manifest s.t. clrClass has runtimeVersion = 4.0.30319 recompile with build.cmd and with vs2010 (reg as com component not checked as non-admin)- check - extract tlb recompile client each time- check-: HRESULT 0x080131700. Check old dll still works with new client (which it does)

    5. Rejig dll manifest to include tlb file and associated typelib, recompile as 4: HRESULT 0x080131700. Check old dll still works with new client (which it does)

    6. Redo all of the above but with clr switch on client: HRESULT 0x8013101b/HRESULT 0x080131700. Check old dll still works with new client (which it does)

    You can assume that there was much googling in amongst all this.

    Any help detailing the (probably obvious) steps I'm missing would be much appreciated.

    Thanks Spencer

    • Moved by Helen Zhou Friday, February 24, 2012 3:20 AM (From:ClickOnce and Setup & Deployment Projects)
    Thursday, February 23, 2012 4:31 PM

Answers

All replies