[Mono-aspnet-list] Problem using a web service.
smsisko at gmail.com
Sun May 10 07:50:31 EDT 2009
> I am also having issues with NameResolutionFailure after upgrading to 2.4.
> I am simply making a call to pull down a JSON response using WebClient.
> This worked perfectly before upgrading, but now it is failing. I've
> confirmed that i can dig/nslookup/ping the address in question. It
> appears to be an issue in 2.4.
> Is there a fix for this yet?
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
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]
I think this might have something to do we the profile, but I haven't found
the problem yet.
I'm not sure it is related to 2.4, I've tried downgrading my mono
installation to 2.2, and I still have the same problem...
View this message in context: http://www.nabble.com/Problem-using-a-web-service.-tp23246075p23469393.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list