How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

No. Not from explorer. It is an intentional move by Microsoft (although I dislike it). You can from powershell though: [Reflection.AssemblyName]::GetAssemblyName(‘full-path-to\xxxx.dll’).Version Also if file version is not explicitly set it will default to assembly version. Here is some info: http://all-things-pure.blogspot.com/2009/09/assembly-version-file-version-product.html

ASP.NET – AppDomain.CurrentDomain.GetAssemblies() – Assemblies missing after AppDomain restart

I looked through the ASP.NET MVC 2.0 source code and looked up how AreaRegistration.RegisterAllAreas(); is implemented. This line is usually put into the Global.asax Application_Start() method and internally it scans all Assemblies for types that implement the AreaRegistration abstract type. This is kinda the behaviour I’m after. It appears RegisterAllAreas() makes a call to BuildManager.GetReferencedAssemblies(), … Read more

How to determine whether a DLL is a managed assembly or native (prevent loading a native dll)?

Answer quoted by lubos hasko is good but it doesn’t work for 64-bit assemblies. Here’s a corrected version (inspired by http://apichange.codeplex.com/SourceControl/changeset/view/76c98b8c7311#ApiChange.Api/src/Introspection/CorFlagsReader.cs) public static bool IsManagedAssembly(string fileName) { using (Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read)) using (BinaryReader binaryReader = new BinaryReader(fileStream)) { if (fileStream.Length < 64) { return false; } //PE Header starts @ 0x3C … Read more

C# Namespaces and Assemblies Best Practice

C#: are there any guidelines, best practices when it comes to dividing a solution up into name-spaces and assemblies? For guidelines for namespaces, read the framework design guidelines. For assemblies: an assembly is by definition the smallest independently versionable unit of self-describing shippable functionality in .NET. Are there parts of your software that you intend … Read more

Could not load file or assembly ‘System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

I had this exact same issue using MVC4 with Ninject built for .Net 4.5 To fix this i had to add a binding redirect to my Web.config file: (at the end of the file, just before the </configuration> tag) <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <dependentAssembly> <assemblyIdentity name=”System.Web.Helpers” publicKeyToken=”31bf3856ad364e35″/> <bindingRedirect oldVersion=”1.0.0.0-2.0.0.0″ newVersion=”2.0.0.0″/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name=”System.Web.Mvc” publicKeyToken=”31bf3856ad364e35″/> <bindingRedirect … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)