Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 19th, 2008, 03:43 PM
Registered User
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get assembly com visible without using VS 2005

I have an assembly written in VS 2005 C# that I can set up for com visibility/interop, my key file, and assembly information - all very handy. The build runs great on my pc when I call it from an external application (like a simple javascript activex object creation just to test it), but I cannot install the dll assembly on another client without rebuilding the assembly on VS 2005.

I bascially need to know the commands that VS 2005 issues in the background so I can go to the command prompt on a client pc and type them in myself. That way I can get the assembly running and executable from an external application on a client that does not have VS 2005 installed.

thank you

Old January 19th, 2008, 05:37 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

You need to use the regasm.exe (register assembly) framework tool to register a .NET assembly that has been compiled for COM visibility. Regasm is the tool for .NET that is equivalent to regsrv32 used traditionally.

Old January 19th, 2008, 07:50 PM
Registered User
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Thank you, I tried regasm and could not run the assembly.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegA sm.exe /codebase "C:\testDateToTick.dll"

and then used the tlb flag too.

both gave successful notices, but neither worked.
Then I rebuilt the assembly on the client using VS2005 and it worked fine.
I must be missing something simple here

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visible GridView jezywrap ASP.NET 2.0 Basics 3 March 20th, 2007 01:07 PM
visible/invisible stealthdevil Access VBA 4 December 1st, 2006 05:40 PM
Converting .NET 2.0 Assembly to .Net 1.x Assembly pskaushik .NET Framework 2.0 1 November 25th, 2006 01:51 PM
visible vs. not visible on form akibaMaila VB.NET 2002/2003 Basics 2 August 15th, 2005 02:40 PM
Column not visible Chronos879 Access 1 October 2nd, 2003 08:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.