vb.net 构建错误“已超出最大错误数”文件 vbc

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16021702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 13:15:54  来源:igfitidea点击:

Build Error "Maximum number of errors has been exceeded" file vbc

asp.netvb.net

提问by DougM

I have an ASP.NET Version 4 project. When I opened the project this morning and tried running it I got a build error " The maximum number of errors has been exceeded" with the item vbc in the file column. As far as I know the project would build that last time I worked on it. I excluded the files I was working on last from the project and I still get this error. Since the error message is ambiguous I can't even tell where to start. I found a reference to this message on another site which said you could increase the data base error limit in settings. I did this but of no help. This isn't a database issue anyway as far as I can tell. Visual studio sees the database. I can open through Server Explorer.

我有一个 ASP.NET 版本 4 项目。当我今天早上打开项目并尝试运行它时,我收到了一个构建错误“已超出最大错误数”,文件列中的项目 vbc 。据我所知,该项目将在我上次工作时构建。我从项目中排除了我最后处理的文件,但仍然出现此错误。由于错误消息模棱两可,我什至不知道从哪里开始。我在另一个站点上找到了对此消息的引用,该消息说您可以在设置中增加数据库错误限制。我这样做了,但没有帮助。据我所知,这无论如何都不是数据库问题。Visual Studio 看到数据库。我可以通过服务器资源管理器打开。

Any suggestions on how to start troubleshooting this would be much appreciated.

任何关于如何开始故障排除的建议将不胜感激。

回答by Sean Lennon

Add the attribute "targetFramework="4.0"" in the compilation node of the web.config file

在web.config文件的编译节点添加属性“ targetFramework="4.0"

I had this issue and couldn't figure it out. Zaf Khan's answer didn't help. I got the project along with it's solution our code repository and apparently we hadn't looked at or change it for a while so I really didn't know where to start. I copied the project (a web application) and pasted it into another directory and tried to open in with visual Studio. Visual Studio gave me the pop-up requesting to upgrade the project to .Net 4.0 then it clicked. I needed to add the attribute "targetFramework="4.0" " in the compilation node of the web.config file. That solved my problem.

我有这个问题,无法弄清楚。扎夫汗的回答没有帮助。我得到了项目及其代码库的解决方案,显然我们有一段时间没有查看或更改它,所以我真的不知道从哪里开始。我复制了该项目(一个 Web 应用程序)并将其粘贴到另一个目录中,并尝试使用 Visual Studio 打开。Visual Studio 给了我一个要求将项目升级到 .Net 4.0 的弹出窗口,然后点击了它。我需要在 web.config 文件的编译节点中添加属性 "targetFramework="4.0" "。那解决了我的问题。

回答by Zeddy

Open your project and close all open documents in your VS 2010/2012

打开您的项目并关闭 VS 2010/2012 中所有打开的文档

And then click on the COLUMN Header as shown in the image below. Ensure the found errors numbers are ascending.

然后单击 COLUMN Header,如下图所示。确保找到的错误编号是升序的。

Then skip through each one till you find the issue.

然后跳过每一项,直到找到问题为止。

Its probably something simple like a speech marks missing (like when you have an open quote somewhere).

它可能很简单,比如缺少语音标记(比如当你在某处有一个开放的引用时)。

enter image description here

在此处输入图片说明