Bug 10758 - NREX when saving the solution after setting code formatting properties
Summary: NREX when saving the solution after setting code formatting properties
Status: RESOLVED DUPLICATE of bug 11039
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-02-28 04:36 UTC by Marek Habersack
Modified: 2013-03-20 19:59 UTC (History)
1 user (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 11039

Description Marek Habersack 2013-02-28 04:36:50 UTC
Setting code formatting properties for entire solution (by right-clicking the solution node and going to options) causes MD to throw NREX shown below. 

Version info:

Mono: master/1d2e9b0
MonoDevelop: 2b90227b7b60512c6e4f651574e5ec79f686f780
OS: Ubuntu 12.10 64-bit

ERROR [2013-02-28 10:27:48Z]: System.ArgumentNullException: Argument cannot be null.
Parameter name: s
  at System.IO.StringReader..ctor (System.String s) [0x00025] in /home/src/build/mono/mono/mcs/class/corlib/System.IO/StringReader.cs:56 
  at (wrapper remoting-invoke-with-check) System.IO.StringReader:.ctor (string)
  at Mono.Xml2.XmlTextReader..ctor (System.String xmlFragment, XmlNodeType fragType, System.Xml.XmlParserContext context) [0x00000] in /home/src/build/mono/mono/mcs/class/System.XML/System.Xml/XmlTextReader.cs:154 
  at System.Xml.XmlTextReader..ctor (System.String xmlFragment, XmlNodeType fragType, System.Xml.XmlParserContext context) [0x00006] in /home/src/build/mono/mono/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:132 
  at System.Xml.XmlElement.set_InnerXml (System.String value) [0x0006f] in /home/src/build/mono/mono/mcs/class/System.XML/System.Xml/XmlElement.cs:152 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProperty.set_Value (System.String value) [0x00008] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProject.cs:437 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SetIfPresentOrNotDefaultValue (MSBuildPropertySet propGroup, System.String name, System.String value, System.String defaultValue) [0x0000f] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1157 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SaveItem (IProgressMonitor monitor) [0x00c5e] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1115 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildHandler.Save (IProgressMonitor monitor) [0x00081] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildHandler.cs:128 
  at MonoDevelop.Projects.SolutionEntityItem.OnSave (IProgressMonitor monitor) [0x00008] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionEntityItem.cs:306 
  at MonoDevelop.Projects.DotNetProject.OnSave (IProgressMonitor monitor) [0x00028] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:726 
  at MonoDevelop.Projects.DefaultProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem entry) [0x00001] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:647 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Autotools.MakefileProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem entry) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.CompiledAssemblyExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs:228 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x0000a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:67 
  at MonoDevelop.Projects.SolutionEntityItem.Save (IProgressMonitor monitor) [0x0003a] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionEntityItem.cs:253 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteProjects (MonoDevelop.Projects.SolutionFolder folder, System.String baseDirectory, System.IO.StreamWriter writer, Boolean saveProjects, IProgressMonitor monitor) [0x00066] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:225 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFileInternal (System.String file, MonoDevelop.Projects.Solution solution, System.String baseDir, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x0008e] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:132 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFile (System.String file, System.Object obj, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x0006f] in /home/src/vc/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:92
Comment 2 Mikayla Hutchinson [MSFT] 2013-02-28 13:34:12 UTC
What solution? it looks like it's tripping up on a specific project.
Comment 3 Mikayla Hutchinson [MSFT] 2013-03-20 19:59:36 UTC

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