Debug using 64-bit IIS Express

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
gmalyshev
Posts: 1
Joined: Thu Oct 22, 2015 4:36 pm

Debug using 64-bit IIS Express

Post by gmalyshev » Thu Oct 22, 2015 4:47 pm

Hello,

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?

Thanks,
Georgy

Andreas Suurkuusk
Posts: 1000
Joined: Wed Mar 02, 2005 7:53 pm

Re: Debug using 64-bit IIS Express

Post by 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 http://cdn.memprofiler.com/download/Mem ... _0_118.exe.
RunIISExpressAs64bit.png
Run IIS Express as 64-bit
Thanks for bringing this to our attention.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests