473,387 Members | 1,724 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,387 software developers and data experts.

Deployment of assembly which has Com Interoperability.

Hi,
I made an assembly (class library project) in Dot net and
wanted the assembly to have COM interoperability successfully got the
assembly working with VB6 performing following steps:
1.Create a strong name key file using sn tool.
2.In the Class Library Project (I am using VS 2005)
2.1 Select "Register For COM" in the Project Properties
2.2 Inside assemblyinfo.cs set COMVISIBLE to True
2.3 Assign strong name key file to the assembly
Project (right Click) --Properties --Signing --Browse
strong name Key File
2.4 Include using System.Runtime.InteropServices; in the
classlibrary.cs
2.5 Build the Project
3 Use gactutil.exe to add assembly into the Global Assembly Cache
4 Register the asembly using regasm.exe
5 Test in VB6
All this works fine on my local machine which has VS 2005 on it.
But I want to move this assembly onto the server which has only the
dotnet framework v 2.0.
My Question is
Q1.Do I need to perform all the steps(step 1 to 4) again to move this
assembly which should have COM Interoperability onto different machine
which is the server where it would be actually used.
Q2.or Should I create a new strong name key file on the server and
assign this new key to the assembly?
My understanding :- I can't skip and have to perform steps 4 and 5
again on the server for adding the assembly to server's GAC and to
register the assembly on server. Wanted to know if I can skip steps 1
and 2 on the server. If yes How?
I am a beginner so not worked much on Dot net Kindly help me out
deploying the assembly to server.

Thank You.

Jun 25 '07 #1
1 1538
divya <di*********@yahoo.com>'s wild thoughts were released
on Sun, 24 Jun 2007 23:54:49 -0700 bearing the following
fruit:
>Hi,
I made an assembly (class library project) in Dot net and
wanted the assembly to have COM interoperability successfully got the
assembly working with VB6 performing following steps:
1.Create a strong name key file using sn tool.
2.In the Class Library Project (I am using VS 2005)
2.1 Select "Register For COM" in the Project Properties
2.2 Inside assemblyinfo.cs set COMVISIBLE to True
2.3 Assign strong name key file to the assembly
Project (right Click) --Properties --Signing --Browse
strong name Key File
2.4 Include using System.Runtime.InteropServices; in the
classlibrary.cs
2.5 Build the Project
3 Use gactutil.exe to add assembly into the Global Assembly Cache
4 Register the asembly using regasm.exe
5 Test in VB6
All this works fine on my local machine which has VS 2005 on it.
But I want to move this assembly onto the server which has only the
dotnet framework v 2.0.
My Question is
Q1.Do I need to perform all the steps(step 1 to 4) again to move this
assembly which should have COM Interoperability onto different machine
which is the server where it would be actually used.
Create a setup program to deploy the app, it should take
care of ensuring your dll is registered correctly.

J
>Q2.or Should I create a new strong name key file on the server and
assign this new key to the assembly?
My understanding :- I can't skip and have to perform steps 4 and 5
again on the server for adding the assembly to server's GAC and to
register the assembly on server. Wanted to know if I can skip steps 1
and 2 on the server. If yes How?
I am a beginner so not worked much on Dot net Kindly help me out
deploying the assembly to server.

Thank You.
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Jul 2 '07 #2

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

Similar topics

0
by: Bryan McArdle | last post by:
How is the .NET Download Assembly Cache related to IE's Temporary Internet Files cache? We have a large app that we are deploying using .NET's No-Touch-Deployment capability to launch the app...
0
by: Oleg Ogurok | last post by:
Hi all, I have a C# class library project that needs to be registered for COM interoperability. I set the "Register for COM Interop" to true in the project's properties. When compiled, VS.NET...
2
by: Matt | last post by:
I'm hoping someone can steer me in the right direction to try to do the following: I am developing an application where we receive files from customers. Right now we receive a variety of...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: al | last post by:
Hi, Can someone please tell me what is exactly zero deployment in VB.NET. Is it that .NET doesn't need to deal with the registry? If that is the case, then why MS introduced class registry? ...
4
by: MadCrazyNewbie | last post by:
Hey group, Could somebody possibly help? I know i`ve asked this before but ended up getting so confused. If I take my .exe from my bin directory and move it to another PC, i keep getting...
2
by: Cary | last post by:
In my project, I want to display the version number on the splash screen and in the help section of my application. I have a variable I created called appVersion. When I go to my deployment project...
11
by: Thom Little | last post by:
Create two ASP.NET applications. Run them on the development machine to make sure they are error free. Publish the fist application to the root of a remote webspace. Call a page and see that it...
3
by: Bratislav Jevtic | last post by:
Hi, I've just installed Ajax November CTP, changed app according to instructions and I am (was) satisfied. Next step - deployment to server. I'm receiving error:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.