VS2015大种子方法-CSC:错误CS0041 [英] VS2015 Large Seed method - CSC : error CS0041

查看:47
本文介绍了VS2015大种子方法-CSC:错误CS0041的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用MVC开发了一个ASP.NET应用程序,并且一切都进行得很好,直到填充我的Seed()方法将替换我要替换的现有系统中的完整数据集为止(一切都很好,使用了缩减集)我一直在进行测试)

Configuration.cs文件现在约为2.5Mb,并在其中创建了约4000个数据元素.

使用这种大种子方法,当我尝试编译应用程序时出现以下错误:

CSC:错误CS0041:写入调试信息时发生意外错误-'内存不足,无法继续执行程序.'

我找不到以前遇到过此问题的任何示例,任何人的帮助都将不胜感激.还要注意,尽管该错误涉及调试信息,但这也发生在Release版本中.

运行Windows 7 x64并具有12Gb内存,而编译器正在运行时可免费使用6Gb ...

解决方案

删除项目的 .PDB 文件,然后尝试以 Release 模式再次进行编译.否则,卸载并重新安装Visual Studio.删除pdb文件通常可以正常工作.

检查.

I have developed an ASP.NET application using MVC, and everything has been going well, until I populated my Seed() method will the full dataset from the existing system that I am replacing (everything is fine with the cut down set I've been using for testing)

The Configuration.cs file is now approximately 2.5Mb and has around 4000 data elements being created in it.

With this large seed method I am getting the following error when I try and compile the application:

CSC : error CS0041: Unexpected error writing debug information -- 'Insufficient memory to continue the execution of the program.'

I can't find any examples of people having run into this issue before, any help from anyone who has would be appreciated. Also note that although the error refers to debug information, this happens on a Release build as well.

Running Windows 7 x64 with 12Gb of memory, 6Gb free while the compiler is running ...

解决方案

Delete your project's .PDB file and try to compile again in Release mode. Else uninstall and re install Visual Studio. Deleting pdb files will mostly work.

Check this.

这篇关于VS2015大种子方法-CSC:错误CS0041的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆