How can I enumerate all available assemblies in GAC in C#?
Actually I am facing an issue with a stupid code – the assembly called Telerik.Web.UI.dll is referred and used in project – this particular DLL is not present in BIN folder. And application is working fine on the server – but on my machine, obviously compiler is giving error. Ex-Developer insists that it is not in GAC on the server and ‘it is what it is’. Now I need to check whether this DLL is registered in GAC or not.
Help will be appreciated.
Good Day;
If you have limited access to the server then this might work:
It basically enumerates the raw GAC folders. It works on DiscountASP shared hosting so might work for your hosting environment.
It could be embellished by enumerating deeper into each assembly’s folder to yank out the version number and public key token.