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

Basic Questions

hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:

1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one time process?
2. What information contained in sn key. I gone through
that it is having public key. How it is using this key to
intract with client.
3. When we have to run gacutil.exe file. Whenever we
compiled, we have to run this or one time is enough? What
it is doing?
4. When we use Build [project name], what it is doing. It
is compiling and registering the dll or just compiling the
dll?
5.When i run the gacutil.exe it created component in the
Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?

Can anybody explain about this questions. Thanks in
advance.

-Ramesh
Nov 15 '05 #1
4 2207
See below:

Ramesh wrote:
hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:

1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one time process?
Typically you create one key-pair per project, or you use one key-pair
throughout your company. In any way, you should ensure that this key
is kept private to prevent others from impersonating your company.
One approach is to use 'delayed signing' (see MSDN)>
2. What information contained in sn key. I gone through
that it is having public key. How it is using this key to
intract with client.
It contains a public and private key. The private is used to encrypt a
part of an assembly, and the public key is embedded (in an abbreviated
form) in the assemblies that are using your assembly.
3. When we have to run gacutil.exe file. Whenever we
compiled, we have to run this or one time is enough? What
it is doing?
It installes an assembly in the Global Assembly Cache so that multiple
applications can share that assembly. Typically you do when your
application is installed on the end-user system.
4. When we use Build [project name], what it is doing. It
is compiling and registering the dll or just compiling the
dll?
It just compiles your assembly. However, you can enable features such as
registering an assembly for COM interop.
5.When i run the gacutil.exe it created component in the
Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?
Hmm, I have not idea. Are you creatnig a COM+ component?
Can anybody explain about this questions. Thanks in
advance.

-Ramesh


Dennis Doomen
Sioux T.S.O. Netherlands
de***********@sioux.nl

Nov 15 '05 #2
Hi Ramesh,

I agree with the answer from Dennis . I'd like to add more information with
regards to your fifth question.
5.When i run the gacutil.exe it created component in the
Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?

It seems that you are create a serviced component. I think the tool
regsvcs.exe will Generates, registers, and installs a type library into a
specified COM+ 1.0 application.
Here is link, you may have a check.
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfnetservicesinstallationutilityregsvcsexe.asp

As for the Global Assembly Cache Tool (Gacutil.exe)
The Global Assembly Cache tool allows you to view and manipulate the
contents of the global assembly cache and download cache. Here is a msdn
link.
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

If you are creating a serviced component. Here is helpful KB link.
HOW TO: Create a Serviced .NET Component in Visual C# .NET
http://support.microsoft.com/default...b;EN-US;306296

If you have any related question, please feel free to let me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------Message-ID: <3F**************@philips.com>
Date: Mon, 08 Sep 2003 11:06:40 +0200
From: Dennis Doomen <de***********@philips.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Subject: Re: Basic Questions
References: <43****************************@phx.gbl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 54
NNTP-Posting-Host: ehv02e.pixs.philips.com
X-Trace: 1063011811 read-nat.news.nl.uu.net 245 193.67.187.140
X-Complaints-To: ab***@nl.uu.net
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-lei1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!news.tele.
dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01. lnd.ops.eu.uu.net!lnewsinp
eer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.eu. uu.net!bnewsinpeer00.bru.o
ps.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu .net!read-nat.news.nl.uu.n
et!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183117
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

See below:

Ramesh wrote:
hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:

1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one time process?


Typically you create one key-pair per project, or you use one key-pair
throughout your company. In any way, you should ensure that this key
is kept private to prevent others from impersonating your company.
One approach is to use 'delayed signing' (see MSDN)>
2. What information contained in sn key. I gone through
that it is having public key. How it is using this key to
intract with client.


It contains a public and private key. The private is used to encrypt a
part of an assembly, and the public key is embedded (in an abbreviated
form) in the assemblies that are using your assembly.
3. When we have to run gacutil.exe file. Whenever we
compiled, we have to run this or one time is enough? What
it is doing?


It installes an assembly in the Global Assembly Cache so that multiple
applications can share that assembly. Typically you do when your
application is installed on the end-user system.
4. When we use Build [project name], what it is doing. It
is compiling and registering the dll or just compiling the
dll?


It just compiles your assembly. However, you can enable features such as
registering an assembly for COM interop.
5.When i run the gacutil.exe it created component in the
Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?


Hmm, I have not idea. Are you creatnig a COM+ component?
Can anybody explain about this questions. Thanks in
advance.

-Ramesh


Dennis Doomen
Sioux T.S.O. Netherlands
de***********@sioux.nl


Nov 15 '05 #3
hi Peter Huang,
Thanks for your reply. I have one more doubt in the
Component services. I can't see my method names (When i
click the method folder under project folder) in the
Component services in Control panel. Is there is any
reason behind that.

thanks,
Ramesh
-----Original Message-----
Hi Ramesh,

I agree with the answer from Dennis . I'd like to add more information withregards to your fifth question.
5.When i run the gacutil.exe it created component in the Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?
It seems that you are create a serviced component. I think the toolregsvcs.exe will Generates, registers, and installs a type library into aspecified COM+ 1.0 application.
Here is link, you may have a check.
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/cptools/html/cpgrfnetservicesinstallationutilityregsvcsexe.asp

As for the Global Assembly Cache Tool (Gacutil.exe)
The Global Assembly Cache tool allows you to view and manipulate thecontents of the global assembly cache and download cache. Here is a msdnlink.
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/cptools/html/cpgrfglobalassemblycacheutilitygacutilexe.asp

If you are creating a serviced component. Here is helpful KB link.HOW TO: Create a Serviced .NET Component in Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;EN- US;306296
If you have any related question, please feel free to let me know.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.--------------------
Message-ID: <3F**************@philips.com>
Date: Mon, 08 Sep 2003 11:06:40 +0200
From: Dennis Doomen <de***********@philips.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-
US; rv:1.0.2)Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Subject: Re: Basic Questions
References: <43****************************@phx.gbl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 54
NNTP-Posting-Host: ehv02e.pixs.philips.com
X-Trace: 1063011811 read-nat.news.nl.uu.net 245
193.67.187.140X-Complaints-To: ab***@nl.uu.net
Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!

newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!npeer.de.kpn- eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk! lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.eu .uu.net! bnewsinpeer00.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.u u.net! read-nat.news.nl.uu.net!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183117X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

See below:

Ramesh wrote:
hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:

1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one time process?

Typically you create one key-pair per project, or you use one key-pairthroughout your company. In any way, you should ensure that this keyis kept private to prevent others from impersonating your company.One approach is to use 'delayed signing' (see MSDN)>
2. What information contained in sn key. I gone
through that it is having public key. How it is using this key to intract with client.


It contains a public and private key. The private is

used to encrypt apart of an assembly, and the public key is embedded (in an abbreviatedform) in the assemblies that are using your assembly.
3. When we have to run gacutil.exe file. Whenever we
compiled, we have to run this or one time is enough? What it is doing?


It installes an assembly in the Global Assembly Cache so that multipleapplications can share that assembly. Typically you do when yourapplication is installed on the end-user system.
4. When we use Build [project name], what it is doing. It is compiling and registering the dll or just compiling the dll?


It just compiles your assembly. However, you can enable features such asregistering an assembly for COM interop.
5.When i run the gacutil.exe it created component in the Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?


Hmm, I have not idea. Are you creatnig a COM+ component?
Can anybody explain about this questions. Thanks in
advance.

-Ramesh


Dennis Doomen
Sioux T.S.O. Netherlands
de***********@sioux.nl


.

Nov 15 '05 #4
Hi Ramesh,

You may try to use the ClassInterfaceAttribute to your class.
[ClassInterfaceAttribute(ClassInterfaceType.AutoDua l)]
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconapplyinginteropattributes.asp

Here is sample code.
http://groups.google.com/groups?q=%2...e(ClassInterfa
ceType.AutoDual)%5D%22+%22peter+huang%22&hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&selm
=ll6fVgyZDHA.2116%40cpmsftngxa06.phx.gbl&rnum=1
Did I answer your question?

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Ramesh" <jr*****@hotmail.com>
Sender: "Ramesh" <jr*****@hotmail.com>
References: <43****************************@phx.gbl> <3F**************@philips.com> <LA**************@cpmsftngxa06.phx.gbl>Subject: Re: Basic Questions
Date: Mon, 8 Sep 2003 21:24:34 -0700
Lines: 165
Message-ID: <45****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcN2ikXNgM/fW3p/RjK7EVXYlb1cTg==
Newsgroups: microsoft.public.dotnet.languages.csharp
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183330
NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

hi Peter Huang,
Thanks for your reply. I have one more doubt in the
Component services. I can't see my method names (When i
click the method folder under project folder) in the
Component services in Control panel. Is there is any
reason behind that.

thanks,
Ramesh
-----Original Message-----
Hi Ramesh,

I agree with the answer from Dennis . I'd like to add

more information with
regards to your fifth question.
5.When i run the gacutil.exe it created component inthe Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?


It seems that you are create a serviced component. I

think the tool
regsvcs.exe will Generates, registers, and installs a

type library into a
specified COM+ 1.0 application.
Here is link, you may have a check.
http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/cptools/htm
l/cpgrfnetservicesinstallationutilityregsvcsexe.asp

As for the Global Assembly Cache Tool (Gacutil.exe)
The Global Assembly Cache tool allows you to view and

manipulate the
contents of the global assembly cache and download cache.

Here is a msdn
link.
http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

If you are creating a serviced component. Here is helpful

KB link.
HOW TO: Create a Serviced .NET Component in Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-

US;306296

If you have any related question, please feel free to let

me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
--------------------
Message-ID: <3F**************@philips.com>
Date: Mon, 08 Sep 2003 11:06:40 +0200
From: Dennis Doomen <de***********@philips.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Subject: Re: Basic Questions
References: <43****************************@phx.gbl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 54
NNTP-Posting-Host: ehv02e.pixs.philips.com
X-Trace: 1063011811 read-nat.news.nl.uu.net 245

193.67.187.140X-Complaints-To: ab***@nl.uu.net
Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!

newsfeed00.sul.t-online.de!t-onlin
e.de!news-lei1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-

eurorings.net!news.tele.
dk!news.tele.dk!small.news.tele.dk!

lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinp
eer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.e u.uu.net!

bnewsinpeer00.bru.o
ps.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea. uu.net!

read-nat.news.nl.uu.n
et!not-for-mail
Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.languages.csharp:183117X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

See below:

Ramesh wrote:
hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:

1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one timeprocess?
Typically you create one key-pair per project, or youuse one key-pairthroughout your company. In any way, you should ensurethat this keyis kept private to prevent others from impersonatingyour company.One approach is to use 'delayed signing' (see MSDN)>

2. What information contained in sn key. I gonethrough that it is having public key. How it is using this keyto intract with client.

It contains a public and private key. The private isused to encrypt apart of an assembly, and the public key is embedded (inan abbreviatedform) in the assemblies that are using your assembly.

3. When we have to run gacutil.exe file. Whenever we
compiled, we have to run this or one time is enough?What it is doing?

It installes an assembly in the Global Assembly Cache sothat multipleapplications can share that assembly. Typically you dowhen yourapplication is installed on the end-user system.

4. When we use Build [project name], what it is doing.It is compiling and registering the dll or just compilingthe dll?

It just compiles your assembly. However, you can enablefeatures such asregistering an assembly for COM interop.

5.When i run the gacutil.exe it created component inthe Component service in control panal and it created this
component many times under project name folder in
Component service. What is the use of it?

Hmm, I have not idea. Are you creatnig a COM+ component?

Can anybody explain about this questions. Thanks in
advance.

-Ramesh

Dennis Doomen
Sioux T.S.O. Netherlands
de***********@sioux.nl


.


Nov 15 '05 #5

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

Similar topics

2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
8
by: Orange Free | last post by:
I want to create a program that will ask a user a series of questions and then generate a Microsoft Word document whose content is dictated by the answers. I am not a professional programmer, and...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
2
by: Steven O. | last post by:
First, this may not be the correct newsgroup. I have some relatively basic questions on SQL. I tried to find a newsgroup that was specifically just about SQL, and was surprised to find that all...
3
by: Jim H | last post by:
If there is a site someone can point me to that answers such basic questions, rather than taking up support's time posting answers, please let me know. I've developed C# .NET, unmanaged C++, and...
2
by: Fay Yocum | last post by:
BEWARE beginner questions!! I have some experience in Access but never as much as I want or need. I have decided to get in on VB.Net. I would only rate myself in Access as a...
0
by: software2006 | last post by:
ASP And Visual Basic Interview questions and answers I have listed over 100 ASP and Visual Basic interview questions and answers in my website...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. This is a basic quiz. Only about 3 questions. I'm having issue with the answer key which stays on a certain value regardless of acknowledging that you have the correct answer for the...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.