HighTechTalks DotNet Forums  

GetRequestStream Strange Behaviour

Dotnet Framework microsoft.public.dotnet.framework


Discuss GetRequestStream Strange Behaviour in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ashehu@gmail.com
 
Posts: n/a

Default GetRequestStream Strange Behaviour - 11-01-2007 , 05:12 AM






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


Reply With Quote
  #2  
Old   
Vadym Stetsiak
 
Posts: n/a

Default Re: GetRequestStream Strange Behaviour - 11-01-2007 , 06:46 PM






Hello, ashehu (AT) gmail (DOT) 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




Reply With Quote
  #3  
Old   
ashehu@gmail.com
 
Posts: n/a

Default Re: GetRequestStream Strange Behaviour - 11-02-2007 , 11:19 AM




Hi,
Quote:
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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.