Bug 2503 - Entering a new Solution name and then selecting a different project type causes an error to be displayed
Summary: Entering a new Solution name and then selecting a different project type caus...
Status: CLOSED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-12-14 17:01 UTC by Eric Beisecker
Modified: 2012-03-12 12:29 UTC (History)
2 users (show)

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

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:
CLOSED FIXED

Description Eric Beisecker 2011-12-14 17:01:34 UTC
Current Behavior: After entering a new Project/Solution name and then selecting a different project type an Error is displayed to the User.

Expected Behavior: A user should be able to enter a project/solution name and be able to select a different project type without receiving and error.

To Reproduce: 
http://www.screencast.com/t/Yw0LrpAG7u9U

Versions:
MonoDevelop 2.8.5
Mono 2.10.6
Mono for Android: 4.0.1.234125318
Monotouch: 5.0.2 

Stack: 
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.FilePath.Combine (System.String[] paths) [0x00014] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs:152 
  at MonoDevelop.Projects.ProjectCreateInformation.get_BinPath () [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectCreateInformation.cs:50 
  at MonoDevelop.Projects.DotNetProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, System.Xml.XmlElement projectOptions) [0x00217] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:143 
  at MonoDevelop.Projects.DotNetAssemblyProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, System.Xml.XmlElement projectOptions) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.AspNetAppProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.AspNetAppProjectBinding.CreateProject (System.String language, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/AspNetAppProjectBinding.cs:57 
  at MonoDevelop.AspNet.AspNetAppProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0000c] in /private/tmp/source/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/AspNetAppProjectBinding.cs:52 
  at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00033] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:498 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00036] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs:111 
  at MonoDevelop.Ide.Templates.ProjectTemplate.HasItemFeatures (MonoDevelop.Projects.SolutionFolder parentFolder, MonoDevelop.Projects.ProjectCreateInformation cinfo) [0x0000e] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:302 
  at MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange (System.Object sender, System.EventArgs e) [0x00107] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:480
Comment 1 Eric Beisecker 2011-12-14 17:02:08 UTC
As a fun note: This bug does NOT appear when the Solution name is entered as 'NewProj' Go figure....
Comment 2 Alan McGovern 2012-03-08 10:30:45 UTC
Can this still be reproduced? If so, would you be able to do a screencast showing exactly what you're doing? I looked at this before and couldn't replicate the exception.
Comment 3 Eric Beisecker 2012-03-12 12:29:14 UTC
This seems to have been corrected.