[Mono-aspnet-list] Problem using a web service.
ionsol
nabble at pasichnyk.net
Sat May 9 20:25:08 EDT 2009
smsisko wrote:
>
>
> Gonzalo Paniagua Javier-5 wrote:
>>
>> On Sun, 2009-04-26 at 13:11 -0700, smsisko wrote:
>>> I've been trying to use a dll that I have made which uses the "Amazon
>>> E-Commerce Service". When I use the library in a mono application
>>> (console or with a GUI), I don't have any problems, but when I try to
>>> use it in an asp.net application I keep getting the following errors:
>>> System.Net.WebException: Error: NameResolutionFailure
>>> at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult
>>> asyncResult) [0x0004c] in
>>> /var/tmp/portage/dev-lang/mono-2.4/work/mono-2.4/mcs/class/System/System.Net/HttpWebRequest.cs:711
>>> at System.Net.HttpWebRequest.GetRequestStream () [0x0004c] in
>>> /var/tmp/portage/dev-lang/mono-2.4/work/mono-2.4/mcs/class/System/System.Net/HttpWebRequest.cs:726
>>> at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
>>> (System.String method_name, System.Object[] parameters) [0x00069] in
>>> /var/tmp/portage/dev-lang/mono-2.4/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs:367
>>> I welcome any hint. Thank you.
>>
>> The host name in the URL cannot be resolved to an IP address.
>> Make sure that you can 'dig' or 'nslookup' that host name.
>>
>> -Gonzalo
>>
>
> As I said the code works on the same computer, so a can resolve the
> hostname usually, I can even browse to the address using my browser.
>
> But when the code is used in an asp.net project, I get the
> NameResolutionFailure.
>
> I'm pretty sure it's related to some settings, I just can't find any. It's
> as if my settings for resolving DNS are not applied to an asp.net
> project...
>
> Thanks
>
> smsisko
>
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?
Thanks,
Jesse
--
View this message in context: http://www.nabble.com/Problem-using-a-web-service.-tp23246075p23465969.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list