|
Home > Archive > BizTalk Server General > July 2005 > 500 Error.MSFT Please HELP ME. with HTTPSender. Kicking my head agains walls.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
500 Error.MSFT Please HELP ME. with HTTPSender. Kicking my head agains walls.
|
|
| Luis Esteban Valencia 2005-07-14, 5:51 pm |
| Again and again. It seems not to have an end. I got this error.
Unable to complete web request. Web Exception error: Error en el servidor
remoto: (500) Error interno del servidor
This is what I have done.
1. Instaleld sharepointservices as web farm. I created a new website for my
sharepoint stuff and I extended that site I didnt Extend default web site..
2. Installed BTS and when it asked me for Hws Site I choosed the
defaultwebsite (not extended)
3. I created the HTTP Sender in the default website.
I put on IIS anonymoys authentication. I also put (Sec comandos y
ejecutables) In Spanish.
Then I submitted the page and it didnt work.
private void btnsubmit_Click(object sender, System.EventArgs e)
{
string requestLocation = "http://estacion15/HTTPSender/BTSHTTPReceive.dll";
Status.Text = "";
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.PreserveWhitespace = true;
XmlNode tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element,
"Activity", "http://que.activity");
xmlDocument.AppendChild(tempXmlNode);
tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Attribute, "type", "");
tempXmlNode.Value = type.SelectedItem.Text;
xmlDocument.DocumentElement.Attributes.Append( (XmlAttribute)tempXmlNode);
tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Location", "");
tempXmlNode.InnerText = location.Text;
xmlDocument.DocumentElement.AppendChild(tempXmlNode);
tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Timestamp", "");
DateTime now = DateTime.Now;
tempXmlNode.InnerText = now.ToString("s");
xmlDocument.DocumentElement.AppendChild(tempXmlNode);
tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Notes", "");
tempXmlNode.InnerText = notes.Text;
xmlDocument.DocumentElement.AppendChild(tempXmlNode);
try
{
HttpWebRequest request = (HttpWebRequest)
HttpWebRequest.Create(requestLocation);
request.Method = "POST";
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] requestData = encoding.GetBytes(xmlDocument.OuterXml);
request.ContentType="application/x-www-form-urlencoded";
request.ContentLength = xmlDocument.OuterXml.Length;
Status.Text += "Submitting activity message";
Stream requestStream = request.GetRequestStream();
requestStream.Write(requestData,0,requestData.Length);
requestStream.Flush();
requestStream.Close();
HttpWebResponse response = (HttpWebResponse) request.GetResponse();
StreamReader responseData = new StreamReader( response.GetResponseStream());
Status.Text = System.Web.HttpUtility.HtmlEncode( responseData.ReadToEnd()) +
"<br>";
}
catch (WebException wex)
{
Status.Text = "Unable to complete web request. Web Exception error: " +
wex.Message;
}
}
}
I also tried this line becuase I noted that BTS installation creates two
virtual directories in the default website and I noted that there was the
same DLL I am using.
Anywway when I changed this line it didnt work neither.
string requestLocation = http://estacion15/HwsMessages/BTSHTTPReceive.dll;
I am kicking my head agains walls.
Please help me.
| |
| Luis Esteban Valencia 2005-07-14, 5:51 pm |
| I stoped Kicking. I did it.
The error was so stupid.
On the receive location I had this
http://localhost/HwsMessages/-----
but on the asp.net website I had http://estacion15.
Well they are the same but it seemed not to work with this.
Thanks guys
"Luis Esteban Valencia" <levalencia@avansoft.com> escribió en el mensaje
news:OHtlGRLiFHA.2424@TK2MSFTNGP09.phx.gbl...
> Again and again. It seems not to have an end. I got this error.
>
>
> Unable to complete web request. Web Exception error: Error en el servidor
> remoto: (500) Error interno del servidor
>
> This is what I have done.
> 1. Instaleld sharepointservices as web farm. I created a new website for
my
> sharepoint stuff and I extended that site I didnt Extend default web
site..
>
> 2. Installed BTS and when it asked me for Hws Site I choosed the
> defaultwebsite (not extended)
>
> 3. I created the HTTP Sender in the default website.
> I put on IIS anonymoys authentication. I also put (Sec comandos y
> ejecutables) In Spanish.
>
> Then I submitted the page and it didnt work.
>
> private void btnsubmit_Click(object sender, System.EventArgs e)
>
> {
>
> string requestLocation =
"http://estacion15/HTTPSender/BTSHTTPReceive.dll";
>
> Status.Text = "";
>
> XmlDocument xmlDocument = new XmlDocument();
>
> xmlDocument.PreserveWhitespace = true;
>
> XmlNode tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element,
> "Activity", "http://que.activity");
>
> xmlDocument.AppendChild(tempXmlNode);
>
> tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Attribute, "type", "");
>
> tempXmlNode.Value = type.SelectedItem.Text;
>
> xmlDocument.DocumentElement.Attributes.Append( (XmlAttribute)tempXmlNode);
>
> tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Location", "");
>
> tempXmlNode.InnerText = location.Text;
>
> xmlDocument.DocumentElement.AppendChild(tempXmlNode);
>
> tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Timestamp",
"");
>
> DateTime now = DateTime.Now;
>
> tempXmlNode.InnerText = now.ToString("s");
>
> xmlDocument.DocumentElement.AppendChild(tempXmlNode);
>
> tempXmlNode = xmlDocument.CreateNode(XmlNodeType.Element, "Notes", "");
>
> tempXmlNode.InnerText = notes.Text;
>
> xmlDocument.DocumentElement.AppendChild(tempXmlNode);
>
> try
>
> {
>
> HttpWebRequest request = (HttpWebRequest)
> HttpWebRequest.Create(requestLocation);
>
> request.Method = "POST";
>
> ASCIIEncoding encoding = new ASCIIEncoding();
>
> byte[] requestData = encoding.GetBytes(xmlDocument.OuterXml);
>
> request.ContentType="application/x-www-form-urlencoded";
>
> request.ContentLength = xmlDocument.OuterXml.Length;
>
> Status.Text += "Submitting activity message";
>
> Stream requestStream = request.GetRequestStream();
>
> requestStream.Write(requestData,0,requestData.Length);
>
> requestStream.Flush();
>
> requestStream.Close();
>
> HttpWebResponse response = (HttpWebResponse) request.GetResponse();
>
> StreamReader responseData = new StreamReader(
response.GetResponseStream());
>
> Status.Text = System.Web.HttpUtility.HtmlEncode( responseData.ReadToEnd())
+
> "<br>";
>
> }
>
> catch (WebException wex)
>
> {
>
> Status.Text = "Unable to complete web request. Web Exception error: " +
> wex.Message;
>
> }
>
> }
>
>
>
> }
>
>
>
>
>
> I also tried this line becuase I noted that BTS installation creates two
> virtual directories in the default website and I noted that there was the
> same DLL I am using.
>
> Anywway when I changed this line it didnt work neither.
>
> string requestLocation = http://estacion15/HwsMessages/BTSHTTPReceive.dll;
>
>
>
> I am kicking my head agains walls.
>
>
>
> Please help me.
>
>
|
|
|
|
|