473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Distribute C# DLL

Using C# Express 2005, I have successfully created a DLL to work with non
..NET clients. On the machine that I have created this DLL, it works fine and
exposes its properties, methods and events and the events fire when expected
(except with Excel 2003 where I cannot create an instance). I want to install
it on another PC with .NET Framework 2.0 installed (no C# Express). I have
tried REGASM, the DLL becomes visible BUT I cannot create an instance of it.

In Express 2005, what is Project | Build and Project | Rebuild acomplishing?
This is what I need to replicate. Or, someone knows better?

In simple terms (i.e C# Express 2005 context), please, what do I need to do
with the DLL for it to work on PCs other than the one it was created on , and
where it works?

Thank you for your help.
Jan 15 '06 #1
2 1455
When you say "to work with non-.Net clients", must assume you mean .NET is
not installed on the client. And that means you want to write Com-Callable
wrapper typelibrary so your .NET assembly can be registered for COM?

Typically the Assembly needs to be installed in the GAC, and the typelibrary
registered for COM. A Setup / Deployment project gives you the tools to do
this, if that's what your intentions are.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ajay_Askoolum" wrote:
Using C# Express 2005, I have successfully created a DLL to work with non
.NET clients. On the machine that I have created this DLL, it works fine and
exposes its properties, methods and events and the events fire when expected
(except with Excel 2003 where I cannot create an instance). I want to install
it on another PC with .NET Framework 2.0 installed (no C# Express). I have
tried REGASM, the DLL becomes visible BUT I cannot create an instance of it.

In Express 2005, what is Project | Build and Project | Rebuild acomplishing?
This is what I need to replicate. Or, someone knows better?

In simple terms (i.e C# Express 2005 context), please, what do I need to do
with the DLL for it to work on PCs other than the one it was created on , and
where it works?

Thank you for your help.

Jan 16 '06 #2
Thanks for the response, Peter.
By non .NET client I mean a PC that DOES have .NET Framework 2.0 installed
but using client software that does not understand .NET. I happen to be using
APL but it could easily have been Excel or VBScript etc. With APL, on the Pc
originating/constructing the DLL, all works fine but not with Excel (using
its VBA).
The C# Express 2005 does not mention anything about GAC and the SN is off.
I know how to put the DLL in the GAC. What do I do:

1. put the DLL in the GAC on the originating PC? When? Before or after I
rebuild?
2. Then, what do I do on the target PC? Use REGASM? The put the DLL in the
GAC?

Would the Deploymnent Wizard in VS 2005 take care of everything so far as
the target PC is concerned?

Thank you for your valued assistance.

"Peter Bromberg [C# MVP]" wrote:
When you say "to work with non-.Net clients", must assume you mean .NET is
not installed on the client. And that means you want to write Com-Callable
wrapper typelibrary so your .NET assembly can be registered for COM?

Typically the Assembly needs to be installed in the GAC, and the typelibrary
registered for COM. A Setup / Deployment project gives you the tools to do
this, if that's what your intentions are.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ajay_Askoolum" wrote:
Using C# Express 2005, I have successfully created a DLL to work with non
.NET clients. On the machine that I have created this DLL, it works fine and
exposes its properties, methods and events and the events fire when expected
(except with Excel 2003 where I cannot create an instance). I want to install
it on another PC with .NET Framework 2.0 installed (no C# Express). I have
tried REGASM, the DLL becomes visible BUT I cannot create an instance of it.

In Express 2005, what is Project | Build and Project | Rebuild acomplishing?
This is what I need to replicate. Or, someone knows better?

In simple terms (i.e C# Express 2005 context), please, what do I need to do
with the DLL for it to work on PCs other than the one it was created on , and
where it works?

Thank you for your help.

Jan 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Daniel Lidström | last post by:
Hello, what are the legal requirements to be able to distribute dotnetfx.exe with my own program? I have read the msdn articles that describe this but I was not able to understand. Could someone...
4
by: Ed Landau | last post by:
Hi: I've just developped a really simple MS Access App. The VBA runs within the database. It uses some DLLs which I register with a script. It's on MS Access2003 (Office11). I've got 2003Pro...
1
by: Rufus DeDufus | last post by:
I want to write an app that uses the jet back end. What Access (Jet) binaries must I distribute? Where do I get (that is, what must I purchase) to get the Jet bits and the rights to distribute? ...
3
by: Nick | last post by:
Hi, We're are about to develop an app in C# that will use a MS Access database file for data storage. The db structure will not be modified. The user will use the C# developed app to view and...
1
by: Wiktor Zychla | last post by:
is it legal to distribute axshdocvw, shdocvw and mshtml.dll with my application? is it legal to distribute Microsoft.mshtml.dll from 'Primary Interop Assemblies' folder (I assume it comes with...
2
by: Laszlo Szijarto | last post by:
I am using third-party controls for image display. It's the COM version of LeadTools. Depending on what I need, it may create various interop .dlls. These Interop .dlls, however don't seem to...
1
by: Yogi_Bear_79 | last post by:
I recently some embedded GZIP files into my project. I added the sharpziplib.dllas a referance. But when I distribute the .exe it looks for the .dll. Did I do something wrong, or miss step? I...
4
by: mike7411 | last post by:
Is there an easy way to tell which files I need to distribute with my Microsoft Visual Studio 2005 MFC application? I keep getting a vague message on my target computer saying the application...
0
by: hooked888 | last post by:
Hi, I have given a task but i have no idea on it.. it sound simple but in store procedure i can't have a clue at all. Table Water NameOfWater VARCHAR, WaterAmount INT Table Cup Id int,
11
by: jackbenimble999 | last post by:
Hello! I'd like to distribute an application developed in MS Access 2003. I've looked at the MS web site and it says although the ability to distribute is included with MS Office Retail, you...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.