Answered by:
Reg Free Com: activating .net-component trouble in .Net 4.0

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
-
Category list: http://social.msdn.microsoft.com/Forums/en-US/category/netdevelopment
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:50 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:09 AM
Monday, April 9, 2012 5:50 AM
All replies
-
Hi Spencer,
This topic seems nothing to do with Setup&Deployment or ClickOnce, I'm moving it to Where is the Forum For…? to see if someone interested in the topic or know where is more suitable for this kind of question.
Sincerely,Helen Zhou [MSFT]
MSDN Community Support | Feedback to us
Friday, February 24, 2012 3:19 AM -
Category list: http://social.msdn.microsoft.com/Forums/en-US/category/netdevelopment
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:50 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:09 AM
Monday, April 9, 2012 5:50 AM