Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 15th, 2007, 11:18 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Register a com dll in other machine is not working

Hi,

Developing Env: .NET Studio in C#, windows XP
target: a COM object used for excel user (RTD)


I have no problem to compile and run the project in my
machine. The excel is working great with RTD calls.

However, I got issues when I try to deploy it to another machine.
I use
regasm my.dll /tlb (or) regasm my.dll
gacutil -if my.dll or gacutil /i my.dll

The excel is not working with RTD calls.It's not invoking my dll (I had log file in my dll ).

I am not sure why it's not working in other machine by registering the above method.

Is there any way to register .NET dll and I can
can deploy it in other machine and let Excel users call it
directly (by RTD)?

Thanks,

Gnanaprakash

 
Old April 25th, 2008, 04:29 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please go to this site, u may get ur solution,
http://support.microsoft.com/kb/908002/en-us
Thanks,
Saravana kumar Karunanithi

akksaravanan
 
Old April 25th, 2008, 04:35 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you see your DLL from the References in Excel (i.e. are you sure its registered as a COM object OK?)

Rob
http://robzyc.spaces.live.com
 
Old April 25th, 2008, 04:51 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

This was posted in January 2007 - I hope he has found a solution before now :)

The original post isn't clear what the 'issues' are - is he getting an error when running the regasm command, or when running the gacutil command?

The error might be the ProgId he is using, or some other issue.

I'm not familiar at all with the concept of RTD's (RealTimeData?) Presumably he has followed something similar to the example here: http://support.microsoft.com/kb/285339/

But without more information its virtually impossible to work out what might be the problem.



/- Sam Judson : Wrox Technical Editor -/
 
Old April 25th, 2008, 05:04 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

LOL! :D
I never even checked the date! It just appeared in my inbox!

I blame akksaravanan! [:P]

Rob
http://robzyc.spaces.live.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 9 comfortasp.dll not working grom BOOK: Beginning Ajax with ASP.NET 0 January 18th, 2008 04:47 PM
working with DLL event, method in JavaScript hendyhanusin Javascript How-To 0 March 23rd, 2007 05:12 AM
HELP: How To Register a COM dll in other machine stalker C# 2 November 12th, 2004 10:16 PM
Pdf export not working on client machine flaco Crystal Reports 0 July 29th, 2004 11:45 AM





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