Connecting Tech Pros Worldwide Help | Site Map

Basic Questions

Ramesh
Guest
 
Posts: n/a
#1: Nov 15 '05
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
Dennis Doomen
Guest
 
Posts: n/a
#2: Nov 15 '05

re: Basic Questions


See below:

Ramesh wrote:[color=blue]
> 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?[/color]

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)>
[color=blue]
> 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.[/color]

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.
[color=blue]
> 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?[/color]

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.
[color=blue]
> 4. When we use Build [project name], what it is doing. It
> is compiling and registering the dll or just compiling the
> dll?[/color]

It just compiles your assembly. However, you can enable features such as
registering an assembly for COM interop.
[color=blue]
> 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?[/color]

Hmm, I have not idea. Are you creatnig a COM+ component?
[color=blue]
> Can anybody explain about this questions. Thanks in
> advance.
>
> -Ramesh[/color]

Dennis Doomen
Sioux T.S.O. Netherlands
dennis.doomen@sioux.nl

Peter Huang [MSFT]
Guest
 
Posts: n/a
#3: Nov 15 '05

re: Basic Questions


Hi Ramesh,

I agree with the answer from Dennis . I'd like to add more information with
regards to your fifth question.
[color=blue][color=green]
>> 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?[/color][/color]

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.
--------------------[color=blue]
>Message-ID: <3F5C46A0.2090903@philips.com>
>Date: Mon, 08 Sep 2003 11:06:40 +0200
>From: Dennis Doomen <dennis.doomen@philips.com>
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)[/color]
Gecko/20030208 Netscape/7.02[color=blue]
>X-Accept-Language: en-us, en
>MIME-Version: 1.0
>Newsgroups: microsoft.public.dotnet.languages.csharp
>Subject: Re: Basic Questions
>References: <43aa01c375e4$b1de8750$a601280a@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: abuse@nl.uu.net
>Path:[/color]
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-mail[color=blue]
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183117
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>See below:
>
>Ramesh wrote:[color=green]
>> 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?[/color]
>
>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)>
>[color=green]
>> 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.[/color]
>
>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.
>[color=green]
>> 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?[/color]
>
>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.
>[color=green]
>> 4. When we use Build [project name], what it is doing. It
>> is compiling and registering the dll or just compiling the
>> dll?[/color]
>
>It just compiles your assembly. However, you can enable features such as
>registering an assembly for COM interop.
>[color=green]
>> 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?[/color]
>
>Hmm, I have not idea. Are you creatnig a COM+ component?
>[color=green]
>> Can anybody explain about this questions. Thanks in
>> advance.
>>
>> -Ramesh[/color]
>
>Dennis Doomen
>Sioux T.S.O. Netherlands
>dennis.doomen@sioux.nl
>
>[/color]

Ramesh
Guest
 
Posts: n/a
#4: Nov 15 '05

re: Basic Questions


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[color=blue]
>-----Original Message-----
>Hi Ramesh,
>
>I agree with the answer from Dennis . I'd like to add[/color]
more information with[color=blue]
>regards to your fifth question.
>[color=green][color=darkred]
>>> 5.When i run the gacutil.exe it created component in[/color][/color][/color]
the[color=blue][color=green][color=darkred]
>>> 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?[/color][/color]
>
>It seems that you are create a serviced component. I[/color]
think the tool[color=blue]
>regsvcs.exe will Generates, registers, and installs a[/color]
type library into a[color=blue]
>specified COM+ 1.0 application.
>Here is link, you may have a check.
>http://msdn.microsoft.com/library/default.asp?[/color]
url=/library/en-us/cptools/htm[color=blue]
>l/cpgrfnetservicesinstallationutilityregsvcsexe.asp
>
>As for the Global Assembly Cache Tool (Gacutil.exe)
>The Global Assembly Cache tool allows you to view and[/color]
manipulate the[color=blue]
>contents of the global assembly cache and download cache.[/color]
Here is a msdn[color=blue]
>link.
>http://msdn.microsoft.com/library/default.asp?[/color]
url=/library/en-us/cptools/htm[color=blue]
>l/cpgrfglobalassemblycacheutilitygacutilexe.asp
>
>If you are creating a serviced component. Here is helpful[/color]
KB link.[color=blue]
>HOW TO: Create a Serviced .NET Component in Visual C# .NET
>http://support.microsoft.com/default.aspx?scid=kb;EN-[/color]
US;306296[color=blue]
>
>If you have any related question, please feel free to let[/color]
me know.[color=blue]
>
>Regards,
>Peter Huang
>Microsoft Online Partner Support
>Get Secure! www.microsoft.com/security
>This posting is provided "as is" with no warranties and[/color]
confers no rights.[color=blue]
>--------------------[color=green]
>>Message-ID: <3F5C46A0.2090903@philips.com>
>>Date: Mon, 08 Sep 2003 11:06:40 +0200
>>From: Dennis Doomen <dennis.doomen@philips.com>
>>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-[/color][/color]
US; rv:1.0.2)[color=blue]
>Gecko/20030208 Netscape/7.02[color=green]
>>X-Accept-Language: en-us, en
>>MIME-Version: 1.0
>>Newsgroups: microsoft.public.dotnet.languages.csharp
>>Subject: Re: Basic Questions
>>References: <43aa01c375e4$b1de8750$a601280a@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[/color][/color]
193.67.187.140[color=blue][color=green]
>>X-Complaints-To: abuse@nl.uu.net
>>Path:[/color]
>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl![/color]
newsfeed00.sul.t-online.de!t-onlin[color=blue]
>e.de!news-lei1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-[/color]
eurorings.net!news.tele.[color=blue]
>dk!news.tele.dk!small.news.tele.dk![/color]
lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinp[color=blue]
>eer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.eu .uu.net![/color]
bnewsinpeer00.bru.o[color=blue]
>ps.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.u u.net![/color]
read-nat.news.nl.uu.n[color=blue]
>et!not-for-mail[color=green]
>>Xref: cpmsftngxa06.phx.gbl[/color][/color]
microsoft.public.dotnet.languages.csharp:183117[color=blue][color=green]
>>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>>
>>See below:
>>
>>Ramesh wrote:[color=darkred]
>>> 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[/color][/color][/color]
process?[color=blue][color=green]
>>
>>Typically you create one key-pair per project, or you[/color][/color]
use one key-pair[color=blue][color=green]
>>throughout your company. In any way, you should ensure[/color][/color]
that this key[color=blue][color=green]
>>is kept private to prevent others from impersonating[/color][/color]
your company.[color=blue][color=green]
>>One approach is to use 'delayed signing' (see MSDN)>
>>[color=darkred]
>>> 2. What information contained in sn key. I gone[/color][/color][/color]
through[color=blue][color=green][color=darkred]
>>> that it is having public key. How it is using this key[/color][/color][/color]
to[color=blue][color=green][color=darkred]
>>> intract with client.[/color]
>>
>>It contains a public and private key. The private is[/color][/color]
used to encrypt a[color=blue][color=green]
>>part of an assembly, and the public key is embedded (in[/color][/color]
an abbreviated[color=blue][color=green]
>>form) in the assemblies that are using your assembly.
>>[color=darkred]
>>> 3. When we have to run gacutil.exe file. Whenever we
>>> compiled, we have to run this or one time is enough?[/color][/color][/color]
What[color=blue][color=green][color=darkred]
>>> it is doing?[/color]
>>
>>It installes an assembly in the Global Assembly Cache so[/color][/color]
that multiple[color=blue][color=green]
>>applications can share that assembly. Typically you do[/color][/color]
when your[color=blue][color=green]
>>application is installed on the end-user system.
>>[color=darkred]
>>> 4. When we use Build [project name], what it is doing.[/color][/color][/color]
It[color=blue][color=green][color=darkred]
>>> is compiling and registering the dll or just compiling[/color][/color][/color]
the[color=blue][color=green][color=darkred]
>>> dll?[/color]
>>
>>It just compiles your assembly. However, you can enable[/color][/color]
features such as[color=blue][color=green]
>>registering an assembly for COM interop.
>>[color=darkred]
>>> 5.When i run the gacutil.exe it created component in[/color][/color][/color]
the[color=blue][color=green][color=darkred]
>>> 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?[/color]
>>
>>Hmm, I have not idea. Are you creatnig a COM+ component?
>>[color=darkred]
>>> Can anybody explain about this questions. Thanks in
>>> advance.
>>>
>>> -Ramesh[/color]
>>
>>Dennis Doomen
>>Sioux T.S.O. Netherlands
>>dennis.doomen@sioux.nl
>>
>>[/color]
>
>.
>[/color]
Peter Huang [MSFT]
Guest
 
Posts: n/a
#5: Nov 15 '05

re: Basic Questions


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.
--------------------[color=blue]
>Content-Class: urn:content-classes:message
>From: "Ramesh" <jr_babu@hotmail.com>
>Sender: "Ramesh" <jr_babu@hotmail.com>
>References: <43aa01c375e4$b1de8750$a601280a@phx.gbl>[/color]
<3F5C46A0.2090903@philips.com> <LAtMBugdDHA.1120@cpmsftngxa06.phx.gbl>[color=blue]
>Subject: Re: Basic Questions
>Date: Mon, 8 Sep 2003 21:24:34 -0700
>Lines: 165
>Message-ID: <450e01c3768a$45d02860$a101280a@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[color=green]
>>-----Original Message-----
>>Hi Ramesh,
>>
>>I agree with the answer from Dennis . I'd like to add[/color]
>more information with[color=green]
>>regards to your fifth question.
>>[color=darkred]
>>>> 5.When i run the gacutil.exe it created component in[/color][/color]
>the[color=green][color=darkred]
>>>> 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?[/color]
>>
>>It seems that you are create a serviced component. I[/color]
>think the tool[color=green]
>>regsvcs.exe will Generates, registers, and installs a[/color]
>type library into a[color=green]
>>specified COM+ 1.0 application.
>>Here is link, you may have a check.
>>http://msdn.microsoft.com/library/default.asp?[/color]
>url=/library/en-us/cptools/htm[color=green]
>>l/cpgrfnetservicesinstallationutilityregsvcsexe.asp
>>
>>As for the Global Assembly Cache Tool (Gacutil.exe)
>>The Global Assembly Cache tool allows you to view and[/color]
>manipulate the[color=green]
>>contents of the global assembly cache and download cache.[/color]
>Here is a msdn[color=green]
>>link.
>>http://msdn.microsoft.com/library/default.asp?[/color]
>url=/library/en-us/cptools/htm[color=green]
>>l/cpgrfglobalassemblycacheutilitygacutilexe.asp
>>
>>If you are creating a serviced component. Here is helpful[/color]
>KB link.[color=green]
>>HOW TO: Create a Serviced .NET Component in Visual C# .NET
>>http://support.microsoft.com/default.aspx?scid=kb;EN-[/color]
>US;306296[color=green]
>>
>>If you have any related question, please feel free to let[/color]
>me know.[color=green]
>>
>>Regards,
>>Peter Huang
>>Microsoft Online Partner Support
>>Get Secure! www.microsoft.com/security
>>This posting is provided "as is" with no warranties and[/color]
>confers no rights.[color=green]
>>--------------------[color=darkred]
>>>Message-ID: <3F5C46A0.2090903@philips.com>
>>>Date: Mon, 08 Sep 2003 11:06:40 +0200
>>>From: Dennis Doomen <dennis.doomen@philips.com>
>>>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-[/color][/color]
>US; rv:1.0.2)[color=green]
>>Gecko/20030208 Netscape/7.02[color=darkred]
>>>X-Accept-Language: en-us, en
>>>MIME-Version: 1.0
>>>Newsgroups: microsoft.public.dotnet.languages.csharp
>>>Subject: Re: Basic Questions
>>>References: <43aa01c375e4$b1de8750$a601280a@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[/color][/color]
>193.67.187.140[color=green][color=darkred]
>>>X-Complaints-To: abuse@nl.uu.net
>>>Path:[/color]
>>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl![/color]
>newsfeed00.sul.t-online.de!t-onlin[color=green]
>>e.de!news-lei1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-[/color]
>eurorings.net!news.tele.[color=green]
>>dk!news.tele.dk!small.news.tele.dk![/color]
>lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinp[color=green]
>>eer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.e u.uu.net![/color]
>bnewsinpeer00.bru.o[color=green]
>>ps.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea. uu.net![/color]
>read-nat.news.nl.uu.n[color=green]
>>et!not-for-mail[color=darkred]
>>>Xref: cpmsftngxa06.phx.gbl[/color][/color]
>microsoft.public.dotnet.languages.csharp:183117[color=green][color=darkred]
>>>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[/color][/color]
>process?[color=green][color=darkred]
>>>
>>>Typically you create one key-pair per project, or you[/color][/color]
>use one key-pair[color=green][color=darkred]
>>>throughout your company. In any way, you should ensure[/color][/color]
>that this key[color=green][color=darkred]
>>>is kept private to prevent others from impersonating[/color][/color]
>your company.[color=green][color=darkred]
>>>One approach is to use 'delayed signing' (see MSDN)>
>>>
>>>> 2. What information contained in sn key. I gone[/color][/color]
>through[color=green][color=darkred]
>>>> that it is having public key. How it is using this key[/color][/color]
>to[color=green][color=darkred]
>>>> intract with client.
>>>
>>>It contains a public and private key. The private is[/color][/color]
>used to encrypt a[color=green][color=darkred]
>>>part of an assembly, and the public key is embedded (in[/color][/color]
>an abbreviated[color=green][color=darkred]
>>>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?[/color][/color]
>What[color=green][color=darkred]
>>>> it is doing?
>>>
>>>It installes an assembly in the Global Assembly Cache so[/color][/color]
>that multiple[color=green][color=darkred]
>>>applications can share that assembly. Typically you do[/color][/color]
>when your[color=green][color=darkred]
>>>application is installed on the end-user system.
>>>
>>>> 4. When we use Build [project name], what it is doing.[/color][/color]
>It[color=green][color=darkred]
>>>> is compiling and registering the dll or just compiling[/color][/color]
>the[color=green][color=darkred]
>>>> dll?
>>>
>>>It just compiles your assembly. However, you can enable[/color][/color]
>features such as[color=green][color=darkred]
>>>registering an assembly for COM interop.
>>>
>>>> 5.When i run the gacutil.exe it created component in[/color][/color]
>the[color=green][color=darkred]
>>>> 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
>>>dennis.doomen@sioux.nl
>>>
>>>[/color]
>>
>>.
>>[/color]
>[/color]

Closed Thread