[Mono-aspnet-list] Problem using a web service.
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,
>> I can't seem to find it.
>> I have been able to reproduce a similar problem using this simple code in
>> asp.net application:
>> public virtual void button1Clicked(object sender, EventArgs args)
>> label1.Text = Dns.GetHostEntry("126.96.36.199").HostName;
>> this gives me the following error:
>> System.InvalidCastException: Cannot cast from source type to destination
>> 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.
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
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("188.8.131.52").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.
I'm running on Gentoo's mono-2.4-r2 build.
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