How to retrieve a DLL from the GAC

Sometime we have some question that we don’t get the answer right away. This one was one of them. I often ask myself “How to get a DLL from the GAC?”, and i didn’t really search for the answer because i was able to retrieve the DLL from another location.

Recently, i had the same question once again but i wasn’t able to find the assembly anywhere else. So i finally got the answer from my college Dominic Sévigny. The trick it’s that we cannot export a DLL from the GAC from the Windows interface. So we need to do it from the DOS console. Here is the procedure to do it:

First you need to open a new command window. You need to browse to the GAC_MSIL folder (c:\Windows\assembly\GAC_MSIL)

image

Each assembly have it own folder. So if you need to access the assembly “CrystalDecisions.ReportAppServer.ClientDoc” you can do it by accessing the folder.

C:\Windows\assembly\GAC_MSIL>cd CrystalDecisions.ReportAppServer.ClientDoc

Once in the folder, you should see a subfolder for each version of the assembly in the GAC.

C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc>dir
Volume in drive C has no label.
Volume Serial Number is C470-AE11

Directory of C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc

23/04/2009  09:55 PM    <DIR>          .
23/04/2009  09:55 PM    <DIR>          ..
23/04/2009  09:55 PM    <DIR>          10.5.3700.0__692fbea5521e1304
               0 File(s)              0 bytes
               3 Dir(s)  38,585,462,784 bytes free

Select the version you need by accessing the folder.

C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc>cd 10.5.3700.0__692fbea5521e1304

C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc\
10.5.3700.0__692fbea5521e1304>dir
Volume in drive C has no label.
Volume Serial Number is C470-AE11

Directory of C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc\
10.5.3700.0__692fbea5521e1304

23/04/2009  09:55 PM    <DIR>          .
23/04/2009  09:55 PM    <DIR>          ..
23/04/2009  09:55 PM            57,344 CrystalDecisions.ReportAppServer.ClientDoc.dll
               1 File(s)         57,344 bytes
               2 Dir(s)  38,585,479,168 bytes free

 

Now you have access to the DLL of the assembly you need. So you can copy the DLL, using Copy or XCopy, to the location you want 

image

This is why i love my job i always learn new stuff everyday, even it’s something very simple!!

Regards,
Louis-Philippe

MIX 09: Review Day 3

Mix09TheNextWebNow 

The last day of the MIX 09, was interesting and also a little bit frustrating, because i had to left Las Vegas :) But i will always remember the good i had   there with my friend Laurent Duveau.

LP_Laurent

 

Session #1 – Consuming Web Services in Microsoft Silvelight 3

Eugene Osovetsky give us a good overview of what will be available with Web Services and Silverlight 3. Mainly the availability to consume binary XML, Debug and server to client “push”.

Video: Consuming Web Services in Microsoft Silverlight 3

 

Session #2 – Adding Microsoft Silverlight to your Company’s Skill Set

I was a disappointed, because the speakers was talking more about Flash than they were talking about Silverlight. And i yes, I'm not a fan of showcase presentation and this one was one.

Video: Adding Microsoft Silverlight to Your Company's Skill Set

 

Session #3 – Building Microsoft Silverlight Controls

This session was very interesting Karen Corby, know what she was doing. It was also related to the styling. A great presentation to watch.

Video: Building Microsoft Silverlight Controls

 

Session #4 – High-Speed RIA Development With the Microsoft Silverlight Toolkit

This was my last session. Shawn Oster present the Silverlight Toolkit. But i wasn't able to view the whole presentation because i had to leave to take my plane back to Montréal.

Video: High-Speed RIA Development with the Microsoft Silverlight Toolkit

 

Conclusion

In conclusion, i really enjoy the experience. I hope to be there next year! I’ll try over next few weeks to blog more technically about what I’ve learned at MIX.

Regards,
Louis-Philippe

Silverlight 3 training now available in Montréal for the first time!

silverlight_montreal_49D9CA5B

Be ready for the next version of Silverlight!

Laurent Duveau as announced that he will give a french Silverlight 3 training at the end of this month in Montreal, Qc.
http://weblogs.asp.net/lduveau/archive/2009/04/03/the-very-first-silverlight-3-training-in-montreal.aspx

The Silverlight Tour has already been modified to include Silverlight 3 content. If you want to be ready for the next version of Silverlight, this is the place to be. This three-day workshop is going to teach the latest features of Silverlight as well as the complete Silverlight 2 stack.

  • When: April 27-29
  • Where: Montreal, Qc
  • Registration (Fr): http://www.runatserver.com/SilverlightTraining.aspx

    The new features covered include:

    • Out of Browser Support
    • Pixel Shaders
    • Animation easing
    • Hardware Graphic Acceleration
    • Behaviours
    • Navigation Framework
    • Blend 3
    • Binding Improvements
    • Secure Web Services
    • Binary XML Transport
    • RIA Services Client Controls
    • Preview of RIA Services

    Silverlight-Tour_250x250

    Regards,
    Louis-Philippe

  • About the author

    Louis-Philippe Pinsonneault is a senior .NET developer and trainer at Runatserver. He has over 10 years of experience with . NET technology. He is a certified Microsoft Certified Professional Developer (MCPD) and a Microsoft Certified Technology Specialist .NET Framework 3.5 ASP.NET Application. He also teaches ASP.NET at Technologia, Montréal. He was awarded an MVP for Device Application Developement in 2010 and 2011.

    Microsoft Most Valuable Professional

    Microsoft Certified Professional Developer

    Microsoft Certified Technology Specialist

    View Louis-Philippe's profile on LinkedIn

    Page List

    Widget Twitter not found.

    Root element is missing.X

    Month List