无法转换的类型'System.Management.Automation.PSCustomObject“对象类型”System.Collections.IEnumerable“ [英] Unable to cast object of type 'System.Management.Automation.PSCustomObject' to type 'System.Collections.IEnumerable'

查看:1341
本文介绍了无法转换的类型'System.Management.Automation.PSCustomObject“对象类型”System.Collections.IEnumerable“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Update 4到Visual Studio 2012年,当我尝试在Solution Explorer中的控制器文件夹中添加一个控制器,右击并选择后添加 - >的Controler我得到以下异常:

After installing Update 4 to Visual Studio 2012, when I try to add a controller right-clicking on the Controllers folder in the Solution Explorer and selecting "Add -> Controler" I am getting following exception:

无法转换类型'System.Management.Automation.PSCustomObject对象键入'System.Collections.IEnumerable。

Unable to cast object of type 'System.Management.Automation.PSCustomObject' to type 'System.Collections.IEnumerable'.

这是Studio的视觉是presenting错误:

This is how Visual Studio is presenting the error:

此错误是发生只为全新项目,幸运的是我没有在我的项目,这些项目均在开发收到此错误。

This error is happening only for brand new projects, fortunately I am not getting this error in my projects that were in development.

更多信息:基本,但我得到了空,互联网应用和Intranet应用程序模板以及

Additional information: The MVC template that I choose was: "Basic", but I got the same problem for "Empty", "Internet Application" and "Intranet Application" templates as well.

推荐答案

解决的办法是重新启动我的电脑并允许Windows 8.1安装挂起更新。

The solution was restart my PC and allow Windows 8.1 to install pending updates.

这篇关于无法转换的类型'System.Management.Automation.PSCustomObject“对象类型”System.Collections.IEnumerable“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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