无法从控制器在2015年VS添加视图:"有运行选定code发生器QUOT一个错误; [英] Can't Add View from Controller in VS 2015 : "There was an error running the selected code generator"

查看:1401
本文介绍了无法从控制器在2015年VS添加视图:"有运行选定code发生器QUOT一个错误;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面那里我需要创建 MVC 的ASP.NET Web 应用视频教程C>,使用的Visual Studio 2015年,是新的ASP.NET的世界,我在下面一步步来。

I'm following a video tutorial where I'm required to create an empty ASP.NET Web Application with MVC, using Visual Studio 2015, being new to ASP.NET world, I'm following step by step.

我得到了我的项目创建好了,下一步从现有的控制器,我得到一个消息错误击中说添加视图:

I got my project created well, next step adding a View from an existing Controller, I got hit by a messagebox error saying :

错误:结果
  有运行选定code产生一个​​错误:
  无效的指针(从HRESULT异常:0x80004003(E_POINTER))

Error :
There was an error running the selected code generator: 'Invalid pointer (Exception from HRESULT:0x80004003(E_POINTER))'

我用Google搜索这个问题,发现了类似的问题,但没有含铅到一个明确的解决方案,其中由VisualStudio中的前版本出台了一些类似的问题,但正如我所说的没有一个明确的解决方案。

I Googled the problem, found similar issues, but none leaded to a clear solution, some similar problems where issued by anterior version of VisualStudio, but as I said none with a clear solution.

要澄清我的经历,这里是我做了什么一步一步:

To clarify what I experienced, here's what I've done step by step :

选择了一个ASP.NET Web应用程序:

在这里输入的形象描述

与MVC的选为空模板检查:

在这里输入的形象描述

试过添加视图从控制器:

Tried to Add View from a Controller :

在这里输入的形象描述

某些设置...

在这里输入的形象描述

的错误:

在这里输入的形象描述

是什么造成这个问题,它的解决是什么?

What's causing this problem and What is the solution for it ?

更新:

事实证明,即使是尝试添加手动查看我得到了同样的错误,添加视图是所有方式不可能的!

It turns out that even by trying to add the View manually I get the same error, adding a view is all ways impossible !

推荐答案

所有我必须做的就是安装<一个href=\"https://visualstudiogallery.msdn.microsoft.com/ee6e6d8c-c837-41fb-886a-6b50ae2d06a2/view/Reviews\"相对=nofollow>网络要点2015.1 ,重新启动Visual Studio中,重复添加视图的动作,和它的工作,没有一个解释这一点,但它的工作。

All I had to do is install Web Essentials 2015.1 , restarted Visual Studio, repeated the Add View action, and it worked, don't have an explanation to this, but it worked.

这篇关于无法从控制器在2015年VS添加视图:&QUOT;有运行选定code发生器QUOT一个错误;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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