[MonoDevelop] Unable to Add View in an ASP.NET MVC 2 project

debianguy debianguy at hotmail.com
Wed Aug 8 16:08:57 UTC 2012


Hello.

I created an ASP.NET MVC 2 project and was able to run it fine. When I tried
to add a new View, I get the following error.

I searched for this error in this forum and found an old thread which said
this is fixed in version 2.4 itself. A quick google search led me to the
bugzilla bug page @ https://bugzilla.xamarin.com/show_bug.cgi?id=6036, which
said this is still in progress. 

Please let me know if there is a workaround to fix this problem.

Thank you.

=====================================
=ERROR=
=====================================
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.TypeLoadException: Could not load
type 'MonoDevelop.AspNet.Mvc.TextTemplating.MvcTextTemplateHost' from
assembly 'MonoDevelop.AspNet.Mvc, Version=2.6.0.0, Culture=neutral,
PublicKeyToken=null'.
  at MonoDevelop.AspNet.Mvc.Gui.FolderCommandHandler.AddView () [0x00000] in
<filename unknown>:0 
  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) [0x00000] in <filename unknown>:0 
  --- 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) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.DefaultCommandHandler.Run
(System.Object target, MonoDevelop.Components.Commands.Command cmd)
[0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run
(System.Object target, MonoDevelop.Components.Commands.Command cmd)
[0x00000] in <filename unknown>:0 
  at
MonoDevelop.Ide.Gui.Components.NodeCommandHandler+TransactedNodeHandlerAttribute.Run
(System.Object target, MonoDevelop.Components.Commands.Command cmd)
[0x00000] in <filename unknown>:0 
  at
MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run
(System.Object target, MonoDevelop.Components.Commands.Command cmd)
[0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object
cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00000] in
<filename unknown>:0 
  at
MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey49.<>m__58
() [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand
(System.Object commandId, System.Object dataItem, System.Object
initialTarget, CommandSource source) [0x00000] in <filename unknown>:0 

=====================================
=VERSION INFORMATION=
=====================================
MonoDevelop 3.0.3.2
Mono 2.10.8.1 (Debian 2.10.8.1-5)
Debian Wheezy



-----
#! 
--
View this message in context: http://mono.1490590.n4.nabble.com/Unable-to-Add-View-in-an-ASP-NET-MVC-2-project-tp4650819.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list