Bug 25898 - Adding a new controller from "Add -> Controller" pop up menu returns an Error
Summary: Adding a new controller from "Add -> Controller" pop up menu returns an Error
Status: RESOLVED DUPLICATE of bug 29325
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 5.5
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-09 19:47 UTC by WENDY SANARWANTO
Modified: 2015-06-19 09:56 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Shown error dialog when trying to add a new Controller. (153.77 KB, image/png)
2015-01-09 19:47 UTC, WENDY SANARWANTO
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 29325

Description WENDY SANARWANTO 2015-01-09 19:47:21 UTC
Created attachment 9311 [details]
Shown error dialog when trying to add a new Controller.

Synopsis:
==========
On ASP .NET MVC with Razor project, when adding a new controller through clicking "Add -> Controller..." pop up's menu item, "an error has occured" error dialog is shown with error information details.

Steps to replicate:
===================
1. Open or create a new ASP NET MVC with Razor project on Xamarin Studio ver 5.5.4 (build 15).
2. On the solution explorer panel, expand the project node.
3. Right click the Controllers node under the project node. Confirm that a pop up menu appear.
4. On the pop up menu, click "Add -> Controller..." menu item. Confirm that an error dialog is shown with error details as follow: 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: A type load exception has occurred.
  at MonoDevelop.AspNet.ProjectPad.AspNetFolderNodeCommandHandler.AddController () [0x00065] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/addins/AspNet/ProjectPad/AspNetFolderNodeCommandHandler.cs:64 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at MonoDevelop.Components.Commands.DefaultCommandHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00019] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:2086 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00009] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandTargetAttribute.cs:101 
  at MonoDevelop.Ide.Gui.Components.NodeCommandHandler+TransactedNodeHandlerAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x0002d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs:296 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00004] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandTargetAttribute.cs:58 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00021] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1955 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey2.<>m__1 () [0x0005f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1037 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002b0] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/f93940a3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1054 

System Environment:
===================
- PC runs OS X Mavericks 10.9.5
- Mono SDK version 3.10.0
- Xamarin studio version 5.5.4 (build 15).
Comment 1 Matt Ward 2015-06-19 09:56:20 UTC
This should be fixed in Xamarin Studio 5.10.0.222 (master)

*** This bug has been marked as a duplicate of bug 29325 ***