Bug 3460 - Getting Duplicate entry in dictionary error when creating view.
Summary: Getting Duplicate entry in dictionary error when creating view.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 2.6
Hardware: PC Linux
: Low normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-14 19:25 UTC by Russell Anderson
Modified: 2012-04-27 12:56 UTC (History)
1 user (show)

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


Attachments
Shot of error (218.26 KB, image/png)
2012-02-14 19:25 UTC, Russell Anderson
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 FIXED

Description Russell Anderson 2012-02-14 19:25:30 UTC
Created attachment 1358 [details]
Shot of error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0 
  at MonoDevelop.TextTemplating.RecyclableAppDomain+CrossDomainAssemblyMap.Add (System.String name, System.String location) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) MonoDevelop.TextTemplating.RecyclableAppDomain/CrossDomainAssemblyMap:Add (string,string)
  at MonoDevelop.TextTemplating.RecyclableAppDomain+Handle.AddAssembly (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Mvc.Gui.FolderCommandHandler.AddView (MonoDevelop.AspNet.Mvc.AspMvcProject project, System.String path, System.String name) [0x00000] in <filename unknown>:0 
  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__AnonStorey47.<>m__56 () [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 

Description of Problem:


Steps to reproduce the problem:
1. Created Project.
2. Imported a few CSS files.
3. Created MasterPage in /Shared/
4. Deleted Index.aspx from View. 
5. Tried to created new Index using Masterpage. Error orruced.
6. Attempted alternate names for View and same error occurs.
7. Deleted project tried again. same result.


Actual Results:


Expected Results:


How often does this happen? 


Additional Information:
Comment 1 Mikayla Hutchinson [MSFT] 2012-04-27 12:56:02 UTC
That code was rewritten in 2.8.8.x, the exception is not possible any more.