GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 101 of 165    Print  
can i change private assembly to shared assembly?How?

  
Total Answers and Comments: 2 Last Update: March 28, 2006     Asked by: Gopal 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 12, 2005 21:35:42   #1  
Saravanan        

RE: can i change private assembly to shared assembly?H...

Yes You can change from Private to Shared.

- Get the SN using sn.exe

- Add the SN to the Assembly

- Put the Assembly in GAC.


 
Is this answer useful? Yes | No
March 28, 2006 01:02:11   #2  
Sathiyavathi        

RE: can i change private assembly to shared assembly?H...

Hi

Yeah we can do.

1. Compile the Private assembly first.For ex:Sample.cs

2. Create the strong name through command prompt as sn -k Test.It will return the Key.

3.Mention these lines in your .cs or AssemblyInfo.cs and you must use the namespace

usingSystem.Reflection;

[assembly:AssemblyKeyFile( Test )]
[assembly:AssemblyVersion( 1.0.0.0 )]

4. Compile your Sample.cs file once again.

5. Now you want to place this dll in GAC for that you mention these lines in your command prompt:

gacutil -i Sample.dll

6. Now your private assembly become a shared assembly.

7. If you want to check it means go to

C:/WINNT/Assembly


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Assembly is an unit of deployment like EXE. or DLL files. ...

An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more 
Latest Answer : the above said answer is good ...

Assemblies are of two types 1. Private Assemblies 2. Shared AssembliesPrivate Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder 
Latest Answer : 1)Private assembly2) Share Assembly3) Satellite Assembly ...

A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under control of 
Latest Answer : Namespace - It is a logical group of classes means it defines boundary for classes. In a single program 2 namespace cannot be have same name. Assemblies - These physical structure of coding and it can store manifest (metadata). Assembly can be ...

Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header portion of a COFF-compliant PE and follows 
Latest Answer : In Simple words, Meta data is set of tables that describe  the types and its members  defined in the assembly and the types and its members referenced in the assembly. Manifest is another set of tables that describe the assembly attributes like ...
Tags : Metadata

An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve 
Latest Answer : whereas the manifest describes the assembly itself, providing the logical attributes shared by all the modules and all components in the assembly.The manifest contains the assembly name, version number, locale and an optional strong name that uniquely ...

A strong name consists of the assembly's identity — its simple text name, version number, and culture information (if provided) — plus a public key and a digital signature. It is 
Latest Answer : A strong name is a way to ensure that a shared assembly's name does not conflict with another shared assembly. A strong name contains assembly name, a public key and a private key. For installing an assembly into GAC you need to give it a strong name. ...

Assemblies are made up of IL code modules and the metadata that describes them. Although programs may be compiled via an IDE or the command line, in fact, they are simply translated into IL, not machine 
Latest Answer : MSIL is the intermediate language which is platform independent. High level language compilers for .Net languages compile the high level code into IL which is not hardware specific. The use of IL allows integration of code written in different .Net languages ...

The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.You should share assemblies by installing them into the global assembly cache 
Latest Answer : A computer installed with the common language runtime has a machine-wide code cache known as Global Assembly Cache. In the .NET Framework, the Global Assembly Cache acts as the central place for registering the assemblies. All the shared Asp.Net assemblies ...

It extends the benefits of metadata by allowing developers to inspect and use it at runtime. For example, dynamically determine all the classes contained in a given assembly and invoke their methods.Reflection 
Latest Answer : Reflection is the mechanism of discovering class information at run time or it is an technique for reading meta data at run time ...


 Sponsored Links

 
Related Articles

What is Change Data Capture

Change Data Capture refers to the process of capturing changes which are made to a production data source. Change Data Capture is typically performed by reading the source of database management software logs. Some of the features of Change Data Capture are It consolidates units of works En
 

Component Assembly Model

Introduction Before the concept of SDLC, different software programs were built to cater to different business and consumer needs. That was decades ago and it’s safe to say that millions of programs have been created for different reasons, for different needs. Developers always work on a
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Top 5 Reasons Why You Need a Career Change

For many people, a change in career takes place more than three times in their life. Reasons for this vary. There are those who make the change because the reality is that people make mistakes in choosing their career paths and would therefore like to correct that by aiming for what they really want
 

Career Change: Tips on How to Look for a New Job

Looking for a new job is a task to do. But if you are changing your career after you have been in the same job for quite some time, then your job search becomes even more difficult. Always remember though that your ultimate goal in working is a good career and not just a good job. So don&rsquo
 

The Right Time To Make A Career Change

Changing careers is one of the most crucial stages in one’s career life. There are employees who get into the career change phase earlier than other employees. But no matter how an employee enjoys his or her current career, there would come a time that an employee would think of shifting c
 

Career Change: Expect the Unexpected

A career change is a major decision on the part of any working individual. It means getting out of your comfort zone and in most cases, starting from scratch. However, a number of people undergo career change successfully. This is because they had the confidence and the passion to go for their goa
 

Step-By-Step Plan For A Career Change

Changing a career at the midpoint of anyone’s life is a vital and critical point in everyone’s working life. Everyone undergoes a career shift phase no matter how successful one is at his current job. Because this decision might affect the rest of one’s life, it is nece
 

Is Career Change The Answer To Your Success?

Personal careers are always a critical aspect for anyone. A career path is not easy to abide by, considering that there will always be external factors such as that of new occupations and job openings of another field that people would want to consider.  There are varying factors that can
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape