[Mono-bugs] [Bug 644501] New: System.Net.ICredentialsByHost error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 7 06:06:23 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=644501

https://bugzilla.novell.com/show_bug.cgi?id=644501#c0


           Summary: System.Net.ICredentialsByHost error
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mkestner at novell.com
        ReportedBy: johan.davidsson at ericsson.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

The following code:


            SmtpClient client = new SmtpClient("mail.somecompany.com", 25);

            client.Credentials = new NetworkCredential("user at somecompany.com",
"password");



gives error:



 " Cannot implicitly convert type 'System.Net.NetworkCredential' to
'System.Net.ICredentialsByHost'. An explicit conversion exists (are you missing
a cast?). " 


Reproducible: Always

Steps to Reproduce:
1. Past attached code into Visual studio
2. Gives error in editor
3.
Actual Results:  
Gives error  "Cannot implicitly convert type 'System.Net.NetworkCredential' to
'System.Net.ICredentialsByHost'. An explicit conversion exists (are you missing
a cast?). "

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list