简体   繁体   English

VS 2015 MVC OutOfMemoryException

[英]VS 2015 MVC OutOfMemoryException

Trying to debug an MVC5 web app - quite basic. 尝试调试MVC5 Web应用程序 - 非常基本。 I've read articles and SO questions and answers and tried things until I'm blue in the face, and still can't figure out why I'm getting this error. 我已经阅读了文章和SO问题和答案,并尝试了一些事情,直到我脸红了,仍然无法弄清楚为什么我会收到这个错误。

Exception of type 'System.OutOfMemoryException' was thrown. 抛出了类型'System.OutOfMemoryException'的异常。

An unhandled exception occurred during the execution of the current web request. 在执行当前Web请求期间发生了未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code. 请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

Environment: - VS 2015 - Windows 10 Professional N - IISExpress - MVC5 Web Application 环境: - VS 2015 - Windows 10 Professional N - IISExpress - MVC5 Web应用程序

I used VS 2013 up until about two weeks ago, switched to 2015 after an upgrade to Windows 10. I've never seen this until switching to 2015. The project(s) are hardly large and memory consuming, the database probably has a dozen tables with two dozen rows in it, and it's not even this single project (this just happens to be my most active one at the moment). 我使用VS 2013直到大约两周前,在升级到Windows 10后切换到2015年。直到2015年才转发到2015年。项目几乎没有大和内存消耗,数据库可能有十几个其中有二十几行的表格,甚至不是这个单一的项目(这恰好是我目前最活跃的一个)。

I've done the following: 我做了以下事情:

  • Verified no spikes in machine resources when this occurs (CPU < 10%, 14gb memory, pretty much flatlined at 6.7gb usage when trying start the debugging (same as normal when I'm not trying to start, no spikes at all)) 当发生这种情况时,验证机器资源没有峰值(CPU <10%,14gb内存,在尝试启动调试时几乎与6.7gb一样扁平化(当我没有尝试启动时一样正常,没有尖峰))
  • Played with debug settings sufficient to ensure that IISExpress doesn't stay running in the background after I close the session/stop debugging. 使用足够的调试设置,以确保在关闭会话/停止调试后IISExpress不会在后台运行。
  • Put IISExpress on the system try where I can manually stop application and close it 把IISExpress放在系统上试试我可以手动停止应用程序并关闭它
  • Verified that there's no hanging processes of iisexpress continuing to run3 已经证实iisexpress没有悬挂流程继续运行3
  • Cleared out every temp folder and every other trick I've read about 清除了每个临时文件夹以及我读过的所有其他技巧

Yet, every three or four times I hit F5 to start debugging, I get this error. 然而,每按三次或四次我按F5开始调试,我就会收到此错误。 Sometimes I can see IISExpress running, kill it and retry and it works fine. 有时我可以看到IISExpress运行,杀死它并重试,它工作正常。 Sometimes the only thing that works is restarting Visual Studio. 有时唯一有效的方法是重启Visual Studio。

I go through runs where I have to restart VS every other time I want to debug the application. 我经历了运行,我必须每隔一段时间重新启动VS,我想调试应用程序。 This is insane, and I can't find the slightest trace of a cause. 这是疯了,我找不到丝毫的原因。

I'm at my wits end, enough to the point where I'm thinking this has to be a bug with VS2015, possibly when running on Windows 10 Professional (N)? 我的智慧已经结束,我认为这可能是VS2015的一个错误,可能在Windows 10 Professional(N)上运行时?

Anyone? 任何人? Please?!?! 请?!?! (can provide full stack trace if someone thinks it helpful) (如果有人认为有用,可以提供完整的堆栈跟踪)

try this link and others in the comment these will help to you. 尝试此链接和评论中的其他人这些将对您有所帮助。

link one : http://weblogs.asp.net/morteza/OutOfMemoryException 链接一: http//weblogs.asp.net/morteza/OutOfMemoryException

Specifically, setting the option to use 64 bit version of IIS: 具体来说,将选项设置为使用64位版本的IIS:

Tools -> Options -> Projects and Solutions -> Web Projects, top checkbox. 工具 - >选项 - >项目和解决方案 - > Web项目,顶部复选框。 Make sure it's checked. 确保已选中。

在此输入图像描述

and try these links also link one, link two 并尝试这些链接也链接一个, 链接两个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM