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();

Recommended Answers

All 2 Replies

try to use multithreading, if the problem is the same tell me

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.