|
Home > Archive > BizTalk Server General > September 2004 > BtsHttpReceive 500 Internal Server Error Biztalk 2004
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 |
BtsHttpReceive 500 Internal Server Error Biztalk 2004
|
|
| Neal Walters 2004-08-27, 6:07 pm |
| 1. My first question is: Do the instructions in the latest doc refresh
actually work for how to set up an HTTP/Receive adapter? I followed the
instructions today with 4 people watching me; and still getting error:
500 Internal Server Error
2. Application Log shows two errors and one warning:
Event Type: Error
Event Source: BizTalk Server 2004
Event Category: BizTalk Server 2004
Event ID: 5734
Date: 8/26/2004
Time: 1:21:10 PM
User: N/A
Computer: TOSHIBA
Description:
The Messaging Engine failed to register the adapter for "BizTalk HTTP
Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
verify that the receive location is valid, and that the isolated adapter runs
under an account that has access to the BizTalk databases.
Event Type: Warning
Event Source: BizTalk Server 2004
Event Category: BizTalk Server 2004
Event ID: 5740
Date: 8/26/2004
Time: 1:27:03 PM
User: N/A
Computer: TOSHIBA
Description:
The adapter "BizTalk HTTP Receiver" raised an error message. Details
"BizTalk HTTP receive adapter failed to initialize itself. Possible reasons:
1) Receive location URL is not created/configured correctly
2) Receive location is not enabled
3) HTTP receive adapter is not running under a user that has access to
management and message databases
4) Isolated host instance is not created for HTTP Receive adapter. ".
Event Type: Error
Event Source: BizTalk Server 2004
Event Category: BizTalk Server 2004
Event ID: 5734
Date: 8/26/2004
Time: 1:27:03 PM
User: N/A
Computer: TOSHIBA
Description:
The Messaging Engine failed to register the adapter for "BizTalk HTTP
Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
verify that the receive location is valid, and that the isolated adapter runs
under an account that has access to the BizTalk databases.
3. I have tried both a one way and two-way port, and yes it is enabled.
4. We also noted that we were get an IWAM_mycomputername security error
because creating the virtual directory with medium/high security also creates
a COM-Plus application called IIS-{Default Web Site//Root/Mysite} and this
site had a default user of IWAM_mycomputername. We changed this.
4B) for our security, we created a userid called BiztalkHttpReceive and
added it to groups: administrator, Biztalk Server Adminstrator, Biztalk
Isolated Host. We set IIS and COM+ to all run under this userid.
5. To test the whole procedure we are running the following VB/Script -
could our bug be here?
set xmlHttp = CreateObject("MSXML2.xmlHttp")
set doc = CreateObject("MSXML2.DOMDocument")
' Validate the document using the MSXML parser.
doc.load (" c:\diamond\samples\Small_EasyPOInstance1
.xml")
If doc.parseError.errorCode Then
' Do something with the error.
Wscript.Echo "Parse Error"
else
WScript.Echo doc.xml
End If
' Post the template.
'on error resume next
xmlHttp.Open "POST", "http://localhost/Diamond/BTSHTTPReceive.dll", False
xmlHttp.setRequestHeader "Content-type", "application/xml"
xmlHttp.send doc.xml
' Retrieve the results.
WScript.Echo " ResponseText=" & xmlHttp.responseText & _
" Status=" & xmlHttp.status & _
" text=" & xmlHttp.statusText
Thanks a million,
Neal Walters
http://Biztalk-Training.com - Free Biztalk Tutorials
| |
| Stefan 2004-08-27, 6:07 pm |
| I believe you are missing the query string at the end of the URL (like
"http://localhost/Diamond/BTSHTTPReceive.dll?myReceiveLocation") this is
mandatory so you can use multiple receive locations on the same virtual
directory. You need to modify your receive location and the sending program
to include an identical query string.
Cheers
Stefan
P.S.
I always use the WFetch (GUI) or TinyGet (Command Line) utility to test my
BizTalk Applications. They are both part of the IIS 6 resource kit.
"Neal Walters" wrote:
> 1. My first question is: Do the instructions in the latest doc refresh
> actually work for how to set up an HTTP/Receive adapter? I followed the
> instructions today with 4 people watching me; and still getting error:
>
> 500 Internal Server Error
>
> 2. Application Log shows two errors and one warning:
>
>
> Event Type: Error
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5734
> Date: 8/26/2004
> Time: 1:21:10 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The Messaging Engine failed to register the adapter for "BizTalk HTTP
> Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
> verify that the receive location is valid, and that the isolated adapter runs
> under an account that has access to the BizTalk databases.
>
>
> Event Type: Warning
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5740
> Date: 8/26/2004
> Time: 1:27:03 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The adapter "BizTalk HTTP Receiver" raised an error message. Details
> "BizTalk HTTP receive adapter failed to initialize itself. Possible reasons:
> 1) Receive location URL is not created/configured correctly
> 2) Receive location is not enabled
> 3) HTTP receive adapter is not running under a user that has access to
> management and message databases
> 4) Isolated host instance is not created for HTTP Receive adapter. ".
>
> Event Type: Error
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5734
> Date: 8/26/2004
> Time: 1:27:03 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The Messaging Engine failed to register the adapter for "BizTalk HTTP
> Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
> verify that the receive location is valid, and that the isolated adapter runs
> under an account that has access to the BizTalk databases.
>
> 3. I have tried both a one way and two-way port, and yes it is enabled.
>
> 4. We also noted that we were get an IWAM_mycomputername security error
> because creating the virtual directory with medium/high security also creates
> a COM-Plus application called IIS-{Default Web Site//Root/Mysite} and this
> site had a default user of IWAM_mycomputername. We changed this.
>
> 4B) for our security, we created a userid called BiztalkHttpReceive and
> added it to groups: administrator, Biztalk Server Adminstrator, Biztalk
> Isolated Host. We set IIS and COM+ to all run under this userid.
>
> 5. To test the whole procedure we are running the following VB/Script -
> could our bug be here?
>
>
> set xmlHttp = CreateObject("MSXML2.xmlHttp")
> set doc = CreateObject("MSXML2.DOMDocument")
>
> ' Validate the document using the MSXML parser.
> doc.load (" c:\diamond\samples\Small_EasyPOInstance1
.xml")
>
> If doc.parseError.errorCode Then
> ' Do something with the error.
> Wscript.Echo "Parse Error"
> else
> WScript.Echo doc.xml
> End If
>
> ' Post the template.
> 'on error resume next
> xmlHttp.Open "POST", "http://localhost/Diamond/BTSHTTPReceive.dll", False
> xmlHttp.setRequestHeader "Content-type", "application/xml"
> xmlHttp.send doc.xml
>
> ' Retrieve the results.
> WScript.Echo " ResponseText=" & xmlHttp.responseText & _
> " Status=" & xmlHttp.status & _
> " text=" & xmlHttp.statusText
>
>
>
>
> Thanks a million,
>
> Neal Walters
> http://Biztalk-Training.com - Free Biztalk Tutorials
>
>
>
>
>
>
>
| |
| Andy Morrison 2004-08-27, 6:07 pm |
| I had a similar problem earlier this week with this adapter. I used
Filemon to track down the issue. In my case I had to give the account
running the host instance for my Http Adapter Read & Execute and Read
rights on the system32\mfc42.dll !!
I'd run Filemon when you send the request in and then look for DENIED
entries related to your host instance account.
One more thing, I think the content type should be text\xml.
Andy
http://www.magenic.com
Neal Walters <NealWalters@discussions.microsoft.com> wrote in message news:<14957325-5D8D-4BE2-B3EC-7D4855C06872@microsoft.com>...
> 1. My first question is: Do the instructions in the latest doc refresh
> actually work for how to set up an HTTP/Receive adapter? I followed the
> instructions today with 4 people watching me; and still getting error:
>
> 500 Internal Server Error
>
> 2. Application Log shows two errors and one warning:
>
>
> Event Type: Error
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5734
> Date: 8/26/2004
> Time: 1:21:10 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The Messaging Engine failed to register the adapter for "BizTalk HTTP
> Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
> verify that the receive location is valid, and that the isolated adapter runs
> under an account that has access to the BizTalk databases.
>
>
> Event Type: Warning
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5740
> Date: 8/26/2004
> Time: 1:27:03 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The adapter "BizTalk HTTP Receiver" raised an error message. Details
> "BizTalk HTTP receive adapter failed to initialize itself. Possible reasons:
> 1) Receive location URL is not created/configured correctly
> 2) Receive location is not enabled
> 3) HTTP receive adapter is not running under a user that has access to
> management and message databases
> 4) Isolated host instance is not created for HTTP Receive adapter. ".
>
> Event Type: Error
> Event Source: BizTalk Server 2004
> Event Category: BizTalk Server 2004
> Event ID: 5734
> Date: 8/26/2004
> Time: 1:27:03 PM
> User: N/A
> Computer: TOSHIBA
> Description:
> The Messaging Engine failed to register the adapter for "BizTalk HTTP
> Receiver" for the receive location "/Diamond/BTSHTTPReceive.dll". Please
> verify that the receive location is valid, and that the isolated adapter runs
> under an account that has access to the BizTalk databases.
>
> 3. I have tried both a one way and two-way port, and yes it is enabled.
>
> 4. We also noted that we were get an IWAM_mycomputername security error
> because creating the virtual directory with medium/high security also creates
> a COM-Plus application called IIS-{Default Web Site//Root/Mysite} and this
> site had a default user of IWAM_mycomputername. We changed this.
>
> 4B) for our security, we created a userid called BiztalkHttpReceive and
> added it to groups: administrator, Biztalk Server Adminstrator, Biztalk
> Isolated Host. We set IIS and COM+ to all run under this userid.
>
> 5. To test the whole procedure we are running the following VB/Script -
> could our bug be here?
>
>
> set xmlHttp = CreateObject("MSXML2.xmlHttp")
> set doc = CreateObject("MSXML2.DOMDocument")
>
> ' Validate the document using the MSXML parser.
> doc.load (" c:\diamond\samples\Small_EasyPOInstance1
.xml")
>
> If doc.parseError.errorCode Then
> ' Do something with the error.
> Wscript.Echo "Parse Error"
> else
> WScript.Echo doc.xml
> End If
>
> ' Post the template.
> 'on error resume next
> xmlHttp.Open "POST", "http://localhost/Diamond/BTSHTTPReceive.dll", False
> xmlHttp.setRequestHeader "Content-type", "application/xml"
> xmlHttp.send doc.xml
>
> ' Retrieve the results.
> WScript.Echo " ResponseText=" & xmlHttp.responseText & _
> " Status=" & xmlHttp.status & _
> " text=" & xmlHttp.statusText
>
>
>
>
> Thanks a million,
>
> Neal Walters
> http://Biztalk-Training.com - Free Biztalk Tutorials
| |
| Neal Walters 2004-09-02, 6:19 pm |
| FINALLY working.
1) FileMon - very cool utility - but it returned no security errors.
2) Should I be using a one way or two way Receive Port? Does it matter?
3) My only problem is I'm not 100% sure what I fixed. I think it was the
following:
I have a one-way port configured as follows:
/Diamond/BTSHTTPReceive.dll?diamondpo1
I think before I had entered the following here:
/locahost/Diamond/BTSHTTPReceive.dll?diamondpo1
I changed my VB/Script (that posts the test xml message) as follows:
xmlHttp.Open "POST",
"http://localhost/Diamond/BTSHTTPReceive.dll?diamondpo1", false
This is one of those cases that there are way too many permutations and not
enough feedback other than 500 server error.
4) BIG QUESTION - Why NOT put the localhost in the URL? Couldn't you point
the HTTP Receive Location to another server other than the one you are on?
Thanks again,
Neal Walters
http://Biztalk-Training.com
|
|
|
|
|