IIS Express - increase memory limit

Gapipro picture Gapipro · Nov 28, 2013 · Viewed 16.5k times · Source

I have a VS project in .NET MVC5 which loads an external dll file that uses a lot of memory. In average it uses from 500-1000MB memory.

Now when I try to debug my project with default IIS Express server I almost always get OutOfMemory exception.

I know that there is a /3gb flag for normal IIS but what about IIS Express. Are there any settings so I can enable this or is there any other solution to this problem except of installing a full IIS on development PC?

PS: Developer PC has Windows 8.1 64x and Visual Studio 2013.

Answer

Gerrie Pretorius picture Gerrie Pretorius · Mar 5, 2016

Go to Visual Studio - Tools - Options Menu

Choose: - Projects and Solutions, then Web Projects

tick the checkbox: "User the 64 bit version of IIS Express for web sites and projects"

No Registry edit necessary.