[Mono-bugs] [Bug 78298][Wis] New - System.Net.NetworkCredential doesn't implement ICredentialByHost

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 5 00:55:27 EDT 2006

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 jaak at jkowalski.net.


--- shadow/78298	2006-05-05 00:55:27.000000000 -0400
+++ shadow/78298.tmp.5551	2006-05-05 00:55:27.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 78298
+Product: Mono: Class Libraries
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jaak at jkowalski.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: System.Net.NetworkCredential doesn't implement ICredentialByHost
+This is needed for SmtpClient to work:
+SmtpClient client;
+// ...
+client.Credentials = new NetworkCredential(SmtpUsername, SmtpPassword);
+I get this error when compiling with Mono 1.1.15 on Windows:
+D:\Work\NLog\src\NLog\Targets\Mail.cs(394,17): error CS0266: Cannot
+implicitly convert type `System.Net.NetworkCrede
+ntial' to `System.Net.ICredentialsByHost'. An explicit conversion exists
+(are you missing a cast?)
+Obviously the ICredentialsByHost interface is not implemented.

More information about the mono-bugs mailing list