[Mono-list] Exception in System.Net.Dns in XSP

Brenton Partridge bapartridge at gmail.com
Sun Nov 4 07:56:31 EST 2007


Hi all,

I'm been having a problem with sending mail from my web application  
running on xsp 1.2.5, Mono 1.2.5, Mac OS 10.4.  I've isolated the  
problem to a "System.Net.Sockets.SocketException: No such host is  
known at System.Net.Dns.hostent_to_IPHostEntry" from  
System.Net.Dns.Resolve.  This happens for EVERY SINGLE DNS name or IP  
address I put in.  This is my test case:

System.Net.IPHostEntry entry = System.Net.Dns.Resolve(smtp);

where smtp could be "192.168.2.3" or "smtp.patmedia.net" or  
"en.wikipedia.org" or "127.0.0.1".  The interesting thing is that I  
do NOT get this exception when running from a mcs-compiled executable  
on the command line, only from XSP.  Any thoughts?

B


More information about the Mono-list mailing list