[Mono-aspnet-list] Problem using a web service.

ionsol nabble at pasichnyk.net
Fri May 15 14:25:15 EDT 2009




Gonzalo Paniagua Javier-5 wrote:
> 
> On Sun, 2009-05-10 at 04:50 -0700, smsisko wrote:
> 
>> I haven't found a fix yet, I'm pretty sure it's a configuration problem,
>> but
>> I can't seem to find it.
>> 
>> I have been able to reproduce a similar problem using this simple code in
>> a
>> asp.net application:
>> 
>> public virtual void button1Clicked(object sender, EventArgs args)
>> {
>>   label1.Text = Dns.GetHostEntry("72.14.205.99").HostName;
>> }
>> 
>> this gives me the following error:
>> 
>> System.InvalidCastException: Cannot cast from source type to destination
>> type.
>>   at System.Net.Sockets.Socket.CheckProtocolSupport () [0x00000] 
>>   at System.Net.Sockets.Socket..cctor () [0x00000] 
> 
> This was fixed after 2.4 was released. If you can get a newer System.dll
> from sources (HEAD or mono-2-4 branch), it will work fine.
> 
> -Gonzalo
> 
> 
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
> 
> 

Gonzalo,

What revision was this corrected in?  And are both the issues posted
corrected, or just the one smsisko posted?

I am able to run the test smsisko posted
(Dns.GetHostEntry("72.14.205.99").HostName).  I am also able to do a
System.Net.WebClient.OpenRead(url) via a standalone console test app.  
However, when i run this same System.Net.WebClient.OpenRead(url) via
fastcgi-mono-server2, it fails with the DnsResolutionFailure still. 

Any thoughts?

I'm running on Gentoo's mono-2.4-r2 build.

Thanks,
Jesse
-- 
View this message in context: http://www.nabble.com/Problem-using-a-web-service.-tp23246075p23565036.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list