> I created a class to submit an xml document to a webpage.
>
[quoted text clipped - 11 lines]
> using (Stream requestStream = request.GetRequestStream())
> Thanks in advance for any hints. tips to solve this problem

Signature
Joerg Jooss
news-reply@joergjooss.de
I only get the error when I run the class from an ASP.NET page. It works fine
if i call the class from a console application
It is not an asp.net web service that I am calling, it is an classic asp
page. It is a 3rd party site, so I have no control over it.
> Just to be sure... you also get the error when running the ASP.NET page on
> your local machine, on which the console application works?
>
> Cheers,
Joerg Jooss - 28 Mar 2006 21:39 GMT
Thus wrote Darren,
> I only get the error when I run the class from an ASP.NET page. It
> works fine if i call the class from a console application
Hm... that seems totally bizarre to me.
Well, just to be sure, you could switch your implementation to WebClient.UploadData()
and see if that makes a difference.
Cheers,

Signature
Joerg Jooss
news-reply@joergjooss.de
Darren - 29 Mar 2006 14:21 GMT
I'll create a test app and get back with my results
> Thus wrote Darren,
>
[quoted text clipped - 7 lines]
>
> Cheers,
Darren - 31 Mar 2006 16:42 GMT
Joerg
I found the problem with my code.
I needed to create a WebProxy object and add it to the HttpWebRequest object.
Darren
Joerg Jooss - 31 Mar 2006 19:55 GMT
Thus wrote Darren,
> Joerg
>
> I found the problem with my code.
> I needed to create a WebProxy object and add it to the HttpWebRequest
> object.
Ah... yes, of course. The console app runs under your identity and thus can
obtain your system's default proxy. The ASP.NET user quite likely doesn't
have a proxy configuration.
Cheers,

Signature
Joerg Jooss
news-reply@joergjooss.de