- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
[编辑:这是一个内存问题。就在出现此错误之前的几秒钟内,我的计算机上的内存从 42% 使用到 91%。有关编译器最多支持 2012 的错误消息只是转移注意力。该消息总是从编译器输出。 ]
我刚刚将一个 Visual Basic 应用程序从 VS2005 转换到 VS2017。
当我尝试启动它时出现此错误:
Server Error in '/' Application.
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code -2147024888.
Show Detailed Compiler Output:
C:\Program Files (x86)\IIS Express> Microsoft (R) Visual Basic Compiler version 14.7.2556 for Visual Basic 2012 Copyright (c) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to Visual Basic 2012, which is no longer the latest version. For compilers that support newer versions of the Visual Basic programming language, see http://go.microsoft.com/fwlink/?LinkID=533241
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2556.0
这是我尝试过的:
我尝试按照说明进行操作,但这些说明似乎是针对 MVC 项目的,而我的项目是 Web 项目 [注意:我是 Visual Studio 的新手,所以我可能错了] 但我确信的是:
一个。我没有项目文件。
我在我的项目上看到一个地球图标。
当我右键单击该项目(解决方案资源管理器中的地球图标)时,我没有获得“属性”菜单项。
那么,我如何克服这个错误,我更喜欢将我的代码更新为当前技术,而不是将库拼凑在一起以使其运行。
[编辑] 这个问题刚刚发生在一个不同的项目/解决方案上,它实际上有一个项目文件。这是几个月前从 VS2005 转换到 VS2017 并且一直运行良好。我怀疑 VS2017 中的某些配置更改会影响所有解决方案。
[编辑] 关于内存不足的评论似乎很有希望,只是它每次都在完全相同的位置失败。重新启动没有帮助。这是具有 16GB 和 500GB SSD 以及 400GB 可用空间的 i7。如果内存不足,则可能是 VS 中的某些配置人为地限制了该特定进程的内存。我将深入了解这条线索。
[编辑] 我安装了 IIS Express 10.0.1740。
[编辑] 我尝试使用 nuget 安装 Roslyn 编译器。错误消息没有改变,但可能是我需要做一些额外的配置才能使其成为用于此解决方案/项目的编译器。问题是在应用程序运行时发生的,因此可能是 iisexpress 正在编译。
[编辑] 这也发生在另一个有 .vbproj 文件的项目上。我怀疑是某些更新导致了这个问题。
[编辑] 我现在正在一个有 .vbproj 文件的项目中进行测试。要更改目标框架,我执行 Project -> XXX Properties -> Application -> Target Framework 4.6.1。问题仍然存在。请注意消息中的警告,它可能需要额外的手动编辑。我不知道要编辑什么,所以我没有做其他更改。
[编辑] 请注意,编译器版本为 14.7.2556,它提示适用于 VB2012。这似乎与 https://en.wikipedia.org/wiki/Visual_Basic_.NET 冲突那就是说 vb 编译器 14.0 于 2015 年问世。
[编辑] 我在 web.config 中没有一个部分,所以没有什么可以删除的。
[编辑] 我在 web.config 中没有 compilerOptions= 标记,因此无需更改。
最佳答案
对于 16GB 的 i7 和 400GB 可用空间的 500GB SSD,我怀疑这是内存问题,我猜 ERROR_NOT_ENOUGH_MEMORY 是根本原因的症状:
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to Visual Basic 2012,
换句话说,编译器只适用于 2012 年之前的项目,所以让我们通过以最新版本的 .Net Framework 为目标来更改我们使用的编译器(右键单击项目 >属性页):
您还可以安全地删除用于 Dynamic Compilation 的 CodeDom在 web.config 中:
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
</compilers>
</system.codedom>
或者您可以更改compilerOptions="/langversion:6
编译器版本。
如果这不起作用,请减少 https://stackoverflow.com/help/mcve在 VS2005 中,我们可以重现问题并将解决方案上传到我们可以下载的地方。
关于vb.net - 仅支持最高 Visual Basic 2012 的语言版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48372868/
我刚刚开始学习,我的一项练习需要帮助。 我需要最终用户输入每个月的降雨量。然后我需要输出平均降雨量、最高月份和最低月份以及降雨量高于平均水平的月份。 我一直在最高和最低中得到相同的数字,我不知道为什么
我试图让一排 div 都与最高的那个的高度相匹配,所以它们看起来是统一的。 我已经阅读了很多这方面的资料,但似乎找不到任何适用于跨浏览器的解决方案。 我目前使用的脚本是: var maxHei
我有一个像 [1,4,3,1,6,5,1,4,4] 的数组 这里最高元素频率是 3 ,我需要从数组中选择频率为 3 的所有元素,如上例中的 [1,4] 。 我已经尝试过这个 var count = {
我有一个学生记录列表,grades ,我想按 GPA 排序,返回前 5 个结果。由于某种原因count awk '{ if (count awk '{ if (count<=8) print $3,
我有一个用于显示博客文章的页面。在页面的开头,我使用以下 SQL 获取数据: SELECT posts.*, count(comments.post_id) as number_of_comments
我有一张 table 城市 |状态|比赛|值(value) 可以有多个相同城市/州/种族和不同值的记录。 我想创建一个新表,其中每个城市|州|种族有一条记录 与 计数(原始表中包含城市/州/种族的记录
我是一名初级 Java 程序员(例如 0 级...)。我正在做这个项目,但我已经被难住了好几天了。我可能还有很多我没有注意到的小错误。 项目是这样的: 要求用户输入从 0.00 到 100.00 的一
我已经对我的数据进行了分组。现在,我要做的是每周从“高”列中选择最高值,并从“低”列中选择最低值,然后使用最高值减去最低值得到范围。但是代码总是错误的。有人对我有想法吗? 这是我的 DataFrame
所以几个月前我在参加编程面试时,由于某种原因这个问题让我绊倒了。我可以想到几个解决方案,但其中大多数似乎效率极低。虽然多年来我一直以某种身份进行编程,但我目前正在大学攻读 CS 学位,所以我的引用点可
我已经制定了一个程序来显示给定日期的特定时间的最高和最低流行项目。该过程没有错误或异常,并且一切正常。如您所见,为了显示 Items 的第一条记录,查询重复了两次,但唯一的区别在于顺序(ASC 和 D
我正在尝试将配对的 div 设置为相同的高度。 Some text Some text Some textSome textSome textSome textSome text Som
R 提供了最大值和最小值,但除了对整个向量进行排序然后从此向量中选取值 x 之外,我没有看到一种真正快速的方法来查找顺序中的另一个值。 例如,是否有更快的方法来获取第二高值? 最佳答案 使用sort(
这是我的命令: top -b -n 1 | head -3 | tail -n 1 | awk '{ print $2 }' 我运行一个 bash 脚本来获取这些详细信息(还有平均负载和内存消耗)并将
对于这个计划,我的目标是...使用 findKth 查找最高分、最低分、中位数和平均分用户必须输入数字(输入-1以停止扫描),但他们不知道有多少个以及是否已排序但是,我在尝试执行此操作时遇到了一些问题
我正在创建这个网站: https://www.melkerhei.be/smeltkroes/index.html 左上角的标志应该是可以点击的。这是代码:
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 9 年前。 Improve this
我的 table 是这样的: name | var ---------------- Joe | 3 Liz | 1 Liz | 4 Joe | 2 Peter
我有这个: function sayHello() { return new Promise( resolve => { throw new Error('reject');
JSFiddle:Example 我正在寻找一种方法来使容器 div 的高度等于其最高的子级。 每个其他子项的大小都应调整为容器的高度。 如果子元素超出其宽度,我还需要容器水平滚动。 到目前为止,我已
我有一个大小为 208 的列表(208 个句子数组),它看起来像: all_words = [["this is a sentence ... "] , [" another one hello bo
我是一名优秀的程序员,十分优秀!