473,695 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2224
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***********@s ioux.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/cpgrfnetservice sinstallationut ilityregsvcsexe .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/cpgrfglobalasse mblycacheutilit ygacutilexe.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.publi c.dotnet.langua ges.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.phi lips.com
X-Trace: 1063011811 read-nat.news.nl.uu. net 245 193.67.187.140
X-Complaints-To: ab***@nl.uu.net
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-lei1.dfn.de!new s-fra1.dfn.de!npe er.de.kpn-eurorings.net!n ews.tele.
dk!news.tele.dk !small.news.tel e.dk!lnewsoutpe er01.lnd.ops.eu .uu.net!lnewsin p
eer01.lnd.ops.e u.uu.net!bnewso utpeer01.bru.op s.eu.uu.net!bne wsinpeer00.bru. o
ps.eu.uu.net!bn ewspost00.bru.o ps.eu.uu.net!em ea.uu.net!read-nat.news.nl.uu. n
et!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1831 17
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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/cpgrfnetservice sinstallationut ilityregsvcsexe .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/cpgrfglobalasse mblycacheutilit ygacutilexe.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.publi c.dotnet.langua ges.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.phi lips.com
X-Trace: 1063011811 read-nat.news.nl.uu. net 245
193.67.187.140X-Complaints-To: ab***@nl.uu.net
Path:

cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!

newsfeed00.sul. t-online.de!t-online.de!news-lei1.dfn.de!new s-fra1.dfn.de!npe er.de.kpn- eurorings.net!n ews.tele.dk!news.tele.d k!small.news.te le.dk! lnewsoutpeer01. lnd.ops.eu.uu.n et!lnewsinpeer01.lnd.ops. eu.uu.net!bnews outpeer01.bru.o ps.eu.uu.net! bnewsinpeer00.b ru.ops.eu.uu.net!b newspost00.bru. ops.eu.uu.net!e mea.uu.net! read-nat.news.nl.uu. net!not-for-mail
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1831 17X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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 multipleapplication s 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 ClassInterfaceA ttribute to your class.
[ClassInterfaceA ttribute(ClassI nterfaceType.Au toDual)]
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconapplyingin teropattributes .asp

Here is sample code.
http://groups.google.com/groups?q=%2...e(ClassInterfa
ceType.AutoDual )%5D%22+%22pete r+huang%22&hl=z h-CN&lr=&ie=UTF-8&oe=UTF-8&selm
=ll6fVgyZDHA.21 16%40cpmsftngxa 06.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*****@hotmai l.com>
Sender: "Ramesh" <jr*****@hotmai l.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.publi c.dotnet.langua ges.csharp
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1833 30
NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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/cpgrfnetservice sinstallationut ilityregsvcsexe .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/cpgrfglobalasse mblycacheutilit ygacutilexe.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.publi c.dotnet.langua ges.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.phi lips.com
X-Trace: 1063011811 read-nat.news.nl.uu. net 245

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

cpmsftngxa06. phx.gbl!TK2MSFT NGP08.phx.gbl!

newsfeed00.sul .t-online.de!t-onlin
e.de!news-lei1.dfn.de!new s-fra1.dfn.de!npe er.de.kpn-

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

lnewsoutpeer01 .lnd.ops.eu.uu. net!lnewsinp
eer01.lnd.ops .eu.uu.net!bnew soutpeer01.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
Xref: cpmsftngxa06.ph x.gblmicrosoft.publ ic.dotnet.langu ages.csharp:183 117X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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 multipleapplicatio ns can share that assembly. Typically you dowhen yourapplicatio n 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 asregisterin g 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
4228
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 Visual Basic.Net as a springboard for studying VBA. I use Office 2000 and would like to use VBA as a tool to customize it. I have zero programming experience. I would like to read through and work on the examples of a beginners
8
10694
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 I understand only a little about OO programming. Should I a) stick to -- *gasp* -- Visual Basic to accomplish my goal; b) use Python, with which I am somewhat familiar, and which I would prefer to use; or
7
9285
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. # No warranty express or implied for the accuracy, fitness to purpose
2
5183
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 the SQL-related newsgroups seem to be product related. But if I missed something, and someone can steer me to a correct newsgroup, please do so. My specific questions: 1. I want to put comments in an SQL script. For example, I want
3
1679
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 MFC applications. I have not written any C++.NET apps yet and have some very basic questions. Are managed C++ programs fully independent executables or are they still processed at run time like C# and vb.net apps are? Is the finished product...
2
2974
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 Beginner/Intermediate VBA programmer. I have decided to go at learning VB.Net in a more organized manner. I have some questions where answers are not becoming clear with VB.Net. So here goes. 1 All of the books I have accessed do basic one-two form examples...
0
541
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 http://www.geocities.com/myinterviewquestions/ASPAndVisualBasic.htm So please have a look and make use of it.
4
2643
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. - Why is this happening? - Can I disable automatic declaration and have everything be declared manually? - Any other options to fix this? Thanks in advance. Goran Djuranovic
2
1390
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 first and moving on to the next answer. Here's the code: <html><head><title>Problem7</title>
0
8619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8559
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6487
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4338
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2996
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2261
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.