[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.


--- 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 Details: gentoo
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rsbarro@metaverse.cc               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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:
+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();
+//Transform the file.
+StringWriter sw = new StringWriter();
+xslt.Transform(xmlDoc, null, sw);
+string xform = sw.ToString();
+The code in mono is breaking on line #3 (resolver.Credentials), I'm
+guessing because System.Net.CredentialCache.DefaultCredentials is not
+The stack trace is:
+Metaverse.Web.Services.Exceptions.AgentException: An error occurred while
+attempting to perform the XSL transformation.
+---> System.NotImplementedException: The requested feature is not yet
+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.