[Mono-bugs] [Bug 51413][Wis] New - System.Net.CredentialCache not implemented

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 25 Nov 2003 20:39:16 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rsbarro@metaverse.cc.

http://bugzilla.ximian.com/show_bug.cgi?id=51413

--- shadow/51413	2003-11-25 20:39:16.000000000 -0500
+++ shadow/51413.tmp.22422	2003-11-25 20:39:16.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 51413
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: gentoo
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rsbarro@metaverse.cc               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net.CredentialCache not implemented
+
+I ran across this bug while attempting to perform Xsl transformations.
+
+Please see this link on MSDN for reference as to why I am using this:
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlurlresolverclasscredentialstopic.asp
+
+Ok, I'm just going to post the code below since it's short:
+
+//Create the XslTransform
+XslTransform xslt = new XslTransform();
+
+//Create a resolver and set the credentials to use
+XmlUrlResolver resolver = new XmlUrlResolver();
+resolver.Credentials = CredentialCache.DefaultCredentials;
+
+//Load the stylesheet
+xslt.Load(this.Stylesheet.CacheFilename, resolver);
+
+//Load the XML data file
+XmlDocument xmlDoc = new XmlDocument();
+xmlDoc.Load(this.CacheFilename);
+
+//Transform the file.
+StringWriter sw = new StringWriter();
+xslt.Transform(xmlDoc, null, sw);
+string xform = sw.ToString();
+sw.Close();
+
+The code in mono is breaking on line #3 (resolver.Credentials), I'm
+guessing because System.Net.CredentialCache.DefaultCredentials is not
+implemented.
+
+The stack trace is:
+Metaverse.Web.Services.Exceptions.AgentException: An error occurred while
+attempting to perform the XSL transformation.
+Stylesheet:
+/home/rsbarro/personal/development/metaverse/Agent.NET/build/cache//stylesheets/jlicdoiappmhgjeghijnnhknelhjlplh.32.xslt
+Document:
+/home/rsbarro/personal/development/metaverse/Agent.NET/build/cache//content/ocgmbmphhjkhjhjibpkhdlboomoaambe.325.2.xml
+---> System.NotImplementedException: The requested feature is not yet
+implemented
+in <0x0002a> System.Net.CredentialCache:get_DefaultCredentials ()
+in <0x00093>
+Metaverse.Web.Services.AgentObjects.Content:GetXslTransformedDocument ()
+--- End of inner exception stack trace ---
+
+I'm running version 0.28.