0

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();
2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by sbrown
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.