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

smsisko smsisko at gmail.com
Tue Apr 28 07:07:12 EDT 2009



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
-- 
View this message in context: http://www.nabble.com/Problem-using-a-web-service.-tp23246075p23274854.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list