[Mono-dev] Migrating an app from MS .NET 2.0 to Mono

Carlos Kassab ckassab at eplsite.org
Mon Jul 3 15:53:23 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

I am migrating a console app that read some files and updates a db, it
is working fine with MS .NET 2.0 but when i try to compile with mono
gmcs.bat

I get the next error:

SendEmail.cs(47,17): error CS0266: Cannot implicitly convert type
`System.Net.Ne
tworkCredential' to `System.Net.ICredentialsByHost'. An explicit
conversion exis
ts (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings

The line in the program is:

                MySMTP.Credentials = new
System.Net.NetworkCredential("usuario", "clave");


I have checked the documentatin and everything is correct, is posible
that this error is because mono still is not completle ported to
version 2.0?

Thank you for your help in advance

Carlos Kassab


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFEqXWytsR4STLctmIRAvfeAJ403c+H7LKBAdwnzc7etvAaRX3NSwCgsQyf
K7wUDuh2TN/ClrbMDhTMcDY=
=h7Hc
-----END PGP SIGNATURE-----




More information about the Mono-devel-list mailing list