运行所选代码生成器时出错 [英] Error running the selected code generator
问题描述
当我尝试添加控制器时,出现以下错误:
When I try to add a controller, I get the following error:
"运行所选代码生成器时出错:'De参数是onjuist。 (来自HRESULT的异常:0x80070057(E_INVALIDARG))'"
"There was an error running the selected code generator: 'De parameter is onjuist. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))'"
我在Visual Studio 2017& 2015年。
I get this in both Visual Studio 2017 & 2015.
我遵循的步骤如下:
右键单击文件夹"Controllers"" - >添加 - >控制器 - > "Web API 2控制器 - 空" (但是其他种类也有问题) - > [新增" - >现在显示错误并且未添加控制器
Rightclick on the folder "Controllers" -> Add -> Controllers -> "Web API 2 Controller - Empty" (however other kinds also have the problem) -> "Add" -> now the error shows and the controller isn't added
.Net版本是:.NET Framework 4.5.2
The .Net version is: .NET Framework 4.5.2
推荐答案
这个错误是否也发生在新项目或某个特定项目中?
Does this error also happen to a new project or only some specific one?
我想知道web.config是否已损坏,请通过创建一个新的来查看它。
I wonder if the web.config corrupted, please check it by creating a new one and see.
参考
此主题有类似问题。
请检查其他第三次奇偶校验扩展是否导致此问题:
And please check if other third parity extension caused this:
https://forums.asp.net/t/2121559.aspx ?有+ + +错误+正在运行+ +已选择+代码+生成器
问候,
Fletcher
这篇关于运行所选代码生成器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!