Bug 2515 - Argument cannot be null when start a new solution
Summary: Argument cannot be null when start a new solution
Status: RESOLVED DUPLICATE of bug 3197
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-12-15 03:23 UTC by sweetwxh
Modified: 2012-04-26 20:50 UTC (History)
4 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:
RESOLVED DUPLICATE of bug 3197

Description sweetwxh 2011-12-15 03:23:51 UTC
Description of Problem:
It throws a exception when I'm creating a new solution.Is this a bug or just my mistake?
The information:
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x000c6] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/corlib/System.IO/Path.cs:126 
  at MonoDevelop.Core.FilePath.Combine (System.String[] paths) [0x00014] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs:152 
  at MonoDevelop.Projects.ProjectCreateInformation.get_BinPath () [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8.5/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 /usr/src/packages/BUILD/monodevelop-2.8.5/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.Projects.DotNetProjectBinding.CreateProject (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProjectBinding.cs:51 
  at MonoDevelop.Projects.DotNetProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0000c] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProjectBinding.cs:46 
  at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00033] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:498 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00036] in /usr/src/packages/BUILD/monodevelop-2.8.5/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 /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:302 
  at MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange (System.Object sender, System.EventArgs e) [0x00107] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:480 

Steps to reproduce the problem:
1. Start a new solution
2. Select a template (whatever)
3. Throws the exception above.

Actual Results:


Expected Results:


How often does this happen? 
Every time

Additional Information:
Comment 1 Jake Babey 2011-12-19 02:48:46 UTC
I'm having the same exact problem. 

System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x000c6] in /tmp/SBo/mono-2.10.2/mcs/class/corlib/System.IO/Path.cs:126 
  at MonoDevelop.Core.FilePath.Combine (System.String[] paths) [0x00014] in /tmp/SBo/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs:152 
  at MonoDevelop.Projects.ProjectCreateInformation.get_BinPath () [0x00000] in /tmp/SBo/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectCreateInformation.cs:50 
  at CBinding.CProject..ctor (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions, System.String language) [0x0002f] in /tmp/SBo/monodevelop-2.8.5/src/addins/CBinding/Project/CProject.cs:113 
  at CBinding.CProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0000c] in /tmp/SBo/monodevelop-2.8.5/src/addins/CBinding/Project/CProjectBinding.cs:51 
  at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00033] in /tmp/SBo/monodevelop-2.8.5/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:498 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00036] in /tmp/SBo/monodevelop-2.8.5/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 /tmp/SBo/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:302 
  at MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange (System.Object sender, System.EventArgs e) [0x00107] in /tmp/SBo/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:480 

Same steps as original post to reproduce. 

Happens every time.
Comment 2 Daniel Isenmann 2012-01-01 10:15:47 UTC
This happens also on ArchLinux package see https://bugs.archlinux.org/task/27778 . Does this commit fixes this issue:
https://github.com/mono/monodevelop/commit/b28011d5ede39304e7d74003870e93eb23af5cc6

Would be great if this issue is fixed soon in a bugfix release.
Comment 3 amentoraz 2012-01-05 07:50:00 UTC
Hi!

I have this problem as well. I just installed MonoDevelop through apt-get (deb http://badgerports.org lucid main) in my Ubuntu and when I "Start a new solution" every option rises a new alert box containing

Argument cannot be null
Parameter name: path1

and the following details:

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) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.ProjectCreateInformation.get_BinPath () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.DotNetProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, System.Xml.XmlElement projectOptions) [0x00000] in <filename unknown>:0 
  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 <filename unknown>:0 
  at MonoDevelop.AspNet.AspNetAppProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.ProjectTemplate.HasItemFeatures (MonoDevelop.Projects.SolutionFolder parentFolder, MonoDevelop.Projects.ProjectCreateInformation cinfo) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
Comment 4 Mikayla Hutchinson [MSFT] 2012-04-26 20:50:34 UTC

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