User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 391,703 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,188 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 790 | Replies: 2
Reply
Join Date: Jun 2007
Posts: 5
Reputation: sbrown is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sbrown sbrown is offline Offline
Newbie Poster

Help HttwWebRequest.GetResponse not responding

  #1  
Aug 30th, 2007
I'm sending an HttpWebRequest to a BizTalk server. BizTalk receives and asyncronously processes correctly, but I never receive an http response. The last statement in the snippet below is where my code hangs. This same code works in my DEV environment - I get the repsonse almost instantly. IIS appears to be setup the same on each box. Any ideas??

 HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);

req.Method = "POST";
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] requestData = encoding.GetBytes(xmlMessage);
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = xmlMessage.Length;

Stream requestStream = req.GetRequestStream();
requestStream.Write(requestData, 0, requestData.Length);

HttpWebResponse response = (HttpWebResponse)req.GetResponse(); 
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 759
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 57
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: HttwWebRequest.GetResponse not responding

  #2  
Sep 4th, 2007
try to use multithreading, if the problem is the same tell me
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Jun 2007
Posts: 5
Reputation: sbrown is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sbrown sbrown is offline Offline
Newbie Poster

Re: HttwWebRequest.GetResponse not responding

  #3  
Sep 5th, 2007
Thanks for your reply ... I found the problem yesterday. It appears as if there is something wrong with security as it pertains to IIS. I can't even get http://localhost to resolve, although BizTalk still receives the request and processes it. Our network Admins are going to reimage the machine for me. It's a brand new box so its nice to be in a position to start over.

Thanks again.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C# Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 2:43 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC