Home All Groups Group Topic Archive Search About

GetRequestStream Strange Behaviour

Author
1 Nov 2007 9:12 AM
ashehu
Hi all,
I have two applications on the same machine with exactly the same
code. One is a Console application that is used for testing and the
other runs in a sharepoint web part. The Console application works
fine, but calling this:
     using (Stream requestStream = request.GetRequestStream())
                {
                    requestStream.Write(bytes, 0, bytes.Length);
                    requestStream.Close();
                }
on the web part always results n a timeout exception.

Any help appreciated.

Thanks,
Ammar

Author
1 Nov 2007 10:46 PM
Vadym Stetsiak
Hello, ash***@gmail.com!

Can you give more details about requests your application is making? Are
they HTTP requests?
Do you use HttpWebRequest?
--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote  on Thu, 01 Nov 2007 02:12:23 -0700:

a> Hi all,
a> I have two applications on the same machine with exactly the same
a> code. One is a Console application that is used for testing and the
a> other runs in a sharepoint web part. The Console application works
a> fine, but calling this:
a>      using (Stream requestStream = request.GetRequestStream())
a>                 {
a>                     requestStream.Write(bytes, 0, bytes.Length);
a>                     requestStream.Close();
a>                 }
a> on the web part always results n a timeout exception.

a> Any help appreciated.

a> Thanks,
a> Ammar
Author
2 Nov 2007 3:19 PM
ashehu
Hi,
> Can you give more details about requests your application is making? Are
> they HTTP requests?
> Do you use HttpWebRequest?


yes I am using a HttpWebRequest object and have set all the neccessary
propoerties: Timeout,credentials and the like. The request is targeted
towards our exchange server and I have noticed that ssl is playing a
role. Sharepoint is probably changing substituting https with  http.
Console application also fails if I use http.

AddThis Social Bookmark Button