Home Dashboard Directory Help
Search

Exception on "Add Controler" in ASP.NET MVC project by AbydosLLC


Status: 

Closed
 as Not Reproducible Help for as Not Reproducible


1
0
Sign in
to vote
Type: Bug
ID: 800847
Opened: 9/15/2013 10:36:50 PM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

I have an ASP.NET MVC Project. When I right-click on the "Controllers"-Directory in the Solution Explorer an select "Add -> Controler" i get following exception:

Unable to cast object of type 'System.Management.Automation.PSCustomObject' to type 'System.Collections.IEnumerable'.
Details
Sign in to post a comment.
Posted by LowTide on 12/19/2013 at 9:46 AM
I have the exact same problem. Created new ASP.NET MVC4 Template Project, Internet Application using Razor ViewEngine. I right click on Models and choose Add Model, and this error shows. However, I can right click, choose add item, go to MVC and choose controller and it works.
Posted by Microsoft on 11/22/2013 at 2:06 PM
Thanks for checking on this issue, Brian. Can you please share your repro with us? We still don't have a repro project here.

ASP.NET Team
Posted by brianwatson on 10/25/2013 at 1:05 PM
I have the exact same problem. Created new ASP.NET MVC4 Template Project, Internet Application using Razor ViewEngine. Successfully added a class in Model and moved to add a Controller but got the same error as in this thread. Was a solution found?
Posted by Microsoft on 9/19/2013 at 8:42 PM
Hello again. We wanted to give you a quick reminder that to efficiently investigate and reproduce your issue, we need you submit the additional information we requested. We look forward to hearing from you with this information.
Posted by Microsoft on 9/16/2013 at 6:36 AM
Thanks for your feedback. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 9/15/2013 at 10:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.