Debug using 64-bit IIS Express

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.

Moderator: SciTech Software

Debug using 64-bit IIS Express

Postby gmalyshev » Thu Oct 22, 2015 4:47 pm


I'm trying to 'Debug with Memory Profiler' form inside Visual Studio 2013. This Web application consumes couple C++/CLI assemblies which are built as 64-bit. As such it can be hosted only under 64-bit IIS Express.

Visual Studio has a setting Tools\Options\Projects and Solutions\Web Projects\Use the 64 bit version of IIS Express so it starts IIS Express from (C:\Program Files\IIS Express). Unfortunately Memory Profiler does not use this setting and starts 32-bit version from C:\Program Files (x86)\IIS Express. This results in "Server Error in '/' Application Could not load file or assembly XXX", BadImageFormatException: Could not load file or assembly 'XXX' or one of its dependencies. An attempt was made to load a program with an incorrect format.

How can instruct Memory Profiler to use 64-bit IIS Express for 'Debug with Memory Profiler' feature?

Posts: 1
Joined: Thu Oct 22, 2015 4:36 pm

Re: Debug using 64-bit IIS Express

Postby Andreas Suurkuusk » Fri Oct 23, 2015 9:51 am

The current version of the profiler will always run the 32-bit version of IIS Express. This is an oversight by us that we have quickly corrected. We have added an option where you can select to use the 64-bit version when profiling IIS Express (see screenshot). When you start profiling an IIS Express project from Visual Studio using "Start Memory Profiler" or "Debug with Memory Profiler", the profiler will now automatically initialize the 64-bit option based on the "Web Projects\Use the 64 bit version of IIS Express" setting.

We have not yet released this fix officially, but you can download the latest installer from ... _0_118.exe.

Run IIS Express as 64-bit

Thanks for bringing this to our attention.
Best regards,

Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
Posts: 995
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden

Return to Using .NET Memory Profiler

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.

SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla


Telephone: +46-706868081