Global Assembly Cache

Posted by Sivashankars under Interview Questions on 6/27/2011 | Points: 10 | Views : 2016 | Status : [Member] | Replies : 4
Hi everyone,

This question was asked in my recent interview.

what do we need to check in assembly before install in global assembly cache?

anyone pls explain?




Responses

Posted by: SheoNarayan on: 6/27/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You need to check for the Strong Name. As quoted in this url http://support.microsoft.com/kb/815808

"To install an assembly in the GAC, you must give the assembly a strong name. The name is a cryptographic hash-key, or signature. This strong name ensures correct component versioning. This helps prevent components that have the same name from conflicting with each other, or from being incorrectly used by a consuming application."

Read more about GAC (Global Assembly Cache) in below link

http://www.dotnetfunda.com/articles/article703-copy-dll-from-gac-.aspx
http://www.dotnetfunda.com/interview/exam2056-how-to-install-a-strong-named-assembly-to-gac-at-command-prompt-.aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sivashankars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Yogi1990 on: 6/27/2011 [Member] Starter | Points: 25

Up
0
Down
We must give the assembly a STRONG name.
If you want this in more detail follow http://support.microsoft.com/kb/815808 link

Yogi

Sivashankars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 6/28/2011 [Member] Starter | Points: 25

Up
0
Down
try this

http://support.microsoft.com/kb/815808

Thanks&Regards
LakshmiNarayana Nalluri.

Sivashankars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 6/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
http://msdn.microsoft.com/en-us/library/yf1d93sz(v=vs.71).aspx

Regards,
Susan

Sivashankars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response