Site icon port135.com

How to find out processor architecture (x86, x64) of dll and exe files?

Using an assembly that has a different processor architecture than your web project may cause your application to throw compatibility errors. Imagine your ASP.NET application targets 32-bit processors but you try to reference a 64-bit Oracle.DataAccess.dll. You will receive an error message such as “Could not load file or assembly” or “Provider is not compatible“.

In order to fix compatibility errors, you need to make sure the processor architecture of your assembly files (dll files). This seems like a complicated task but it’s actually pretty straightforward if you know where to look at.

I will explain 5 quick ways to find out the processor architecture of an assembly file.

Are you looking for how to find public key token value of an assembly file. Check this post out.

5 ways to find out the processor architecture of an assembly file

1. Use Notepad

Yes, it’s as easy as using Windows Notepad. Follow the steps below:

32bit DLL file
64bit DLL file

Thank you Alexander Revo for this brilliant method.

2. Use 7-Zip

Another easy way of finding out processor type is that using 7-Zip which is a popular file achiever that is installed in majority of users. Follow easy the steps below.

3. Use Dumpbin

If you have Visual Studio installed, you can use Dumpbin utility to display properties of your assembly files. Make sure to use it with /headers option. Follow the steps below to use Dumpbin:

dumpbin /headers Oracle.DataAccess.dll

4. Use Sigcheck

Another useful Microsoft utility is Sigcheck. You can download it quickly from Microsoft’s website. Follow the steps below to use Sigcheck for finding processor architecture of your dll and exe files.

sigcheck Oracle.DataAccess.dll

5. Use Dependency Walker

My last recommendation is a third-party tool: Dependency Walker. It’s a free utility to view properties of your dll, exe, and other Windows modules. It creates a hierarchical tree diagram for the file you select.

References:

 

 

Exit mobile version