Bug 51254 - ServiceDescriptionTest.SimpleWrite test disabled
Summary: ServiceDescriptionTest.SimpleWrite test disabled
Status: CONFIRMED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-05 22:00 UTC by Chris Hamons
Modified: 2017-01-05 22:00 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 for Bug 51254 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Chris Hamons 2017-01-05 22:00:26 UTC
During the porting of BCL tests, this test randomly failed:

		public void SimpleWrite ()
		{
			ServiceDescription sd = new ServiceDescription ();
			Assert.IsNull (sd.Name);
			sd.Write (TextWriter.Null);
		}

1) SimpleWrite (MonoTests.System.Web.Services.Description.ServiceDescriptionTest.SimpleWrite)
   System.InvalidOperationException : There was an error generating the XML document.
  ----> System.InvalidOperationException : Invalid namespace attribute: xmlns:s0="".
  at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter xmlWriter, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces, System.String encodingStyle, System.String id) [0x0011f] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializer.cs:352 
  at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter xmlWriter, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces, System.String encodingStyle) [0x00000] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializer.cs:321 
  at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter xmlWriter, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00000] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializer.cs:317 
  at System.Xml.Serialization.XmlSerializer.Serialize (System.IO.TextWriter textWriter, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00015] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializer.cs:282 
  at System.Web.Services.Description.ServiceDescription.Write (System.IO.TextWriter writer) [0x00000] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:262 
  at MonoTests.System.Web.Services.Description.ServiceDescriptionTest.SimpleWrite () [0x00018] in /Users/donblas/Programming/macios/master/xamarin-macios/external/mono/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:31 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
--InvalidOperationException
  at System.Xml.Serialization.XmlSerializationWriter.WriteStartElement (System.String name, System.String ns, System.Object o, System.Boolean writePrefixed, System.Xml.Serialization.XmlSerializerNamespaces xmlns) [0x0024d] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializationWriter.cs:453 
  at System.Xml.Serialization.XmlSerializationWriter.WriteStartElement (System.String name, System.String ns, System.Object o) [0x00000] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializationWriter.cs:402 
  at System.Web.Services.Description.ServiceDescriptionWriterBase.WriteObject_ServiceDescription (System.Web.Services.Description.ServiceDescription ob, System.String element, System.String namesp, System.Boolean isNullable, System.Boolean needType, System.Boolean writeWrappingElem) [0x00046] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionSerializerBase2.cs:1559 
  at System.Web.Services.Description.ServiceDescriptionWriterBase.WriteRoot_ServiceDescription (System.Object o) [0x00013] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionSerializerBase2.cs:1539 
  at System.Web.Services.Description.ServiceDescription+ServiceDescriptionSerializer.Serialize (System.Object o, System.Xml.Serialization.XmlSerializationWriter writer) [0x00007] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:386 
  at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter xmlWriter, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces, System.String encodingStyle, System.String id) [0x00098] in /Users/donblas/Programming/macios/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/System.Xml/System/Xml/Serialization/XmlSerializer.cs:337