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.
You can increase this amount by opening the IIS manager (start->run->inetmgr), expanding the server node on the left pane, clicking on "Application Pools", right clicking on the application pool running your application, selecting "Advanced Settings", and changing the Private Memory Limit and Virtual Memory Limit in ...
Connect to the machine running your web application and open up task manager (start->run->taskmgr). Make sure other processes are not using up most of the RAM on the server. If they are, close them, migrate your application to another machine, or increase the amount of RAM available. Note that ASP .
IIS Express is a lightweight, self-contained version of IIS optimized for developers. IIS Express makes it easy to use the most current version of IIS to develop and test websites.
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.
Both Cassini and IISExpress runs as 32 bit by default... You can configure Visual Studio 2012 to use IIS Express 64-bit by adding/setting the following registry key:
reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1
IIS Express 8 and above supports both modes. Best to use an application like process explorer after making the registry change to inspect the IISExpress process and make sure that its running from the 64 bit location. When you install IIS 8.0 Express on a 64-bit system, both the 32-bit and 64-bit versions of IIS 8.0 Express will be installed respectively in the "%ProgramFiles(x86)%\IIS Express" and "%ProgramFiles%\IIS Express" folders.
Alternatively, you can install IIS locally and configure it to run your application. You can configure Visual Studio to point to a local instance of IIS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With