ACME Setup Fails

I have just completed the installation of Biztalk 2006 R2 with RFID and was hoping to start my learning by examining the ACME Device Simulator. However I am seeing an error when I try running the "acmesetup.cmd".

Here is a copy of the output from the command file when I run it.

Can anyone point me in the right direction for fixing this "content type" related error ?


Code Snippet

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" RegisterProvider Acme Microsoft.Rfid.AcmeDeviceProvider
Command executed successfully

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" CopyProviderFile Acme "C:\Program Files\Microsoft BizTalk RFID\\bin\Microsoft.Rfid.AcmeDeviceProvider.dll"
Command executed successfully

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" StartProvider Acme
Command failed, reason The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/Acme006701de-8cbb-4de9-9431-96d1e34103f5' Application.<hr width=100% size=1 color=silver></H1>

<'.Inner Exception
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/Acme006701de-8cbb-4de9-9431-96d1e34103f5' Application.<hr width=100% size=1 color=silver></H1>

<'.Inner Exception
The remote server returned an error: (500) Internal Server Error.
Remote message The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/Acme006701de-8cbb-4de9-9431-96d1e34103f5' Application.<hr width=100% size=1 color=silver></H1>

<'.Inner Exception
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/Acme006701de-8cbb-4de9-9431-96d1e34103f5' Application.<hr width=100% size=1 color=silver></H1>

<'.Inner Exception
The remote server returned an error: (500) Internal Server Error.

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" ImportDevices device.xml false true
AcmeTestDevice added!
Command executed successfully

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" ImportProcesses processbinding.xml
Command executed successfully

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" DeployProcess AcmeTestProcess
Command executed successfully

>"C:\Program Files\Microsoft BizTalk RFID\\bin\rfidclientconsole.exe" StartProcess AcmeTestProcess
Command failed, reason The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/AcmeTestProcessc22e95d9-b0f0-4a52-a1ca-e8402778df2d' Application.<hr width=100% size=1 color=silver></H1>

'.Inner Exception
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/AcmeTestProcessc22e95d9-b0f0-4a52-a1ca-e8402778df2d' Application.<hr width=100% size=1 color=silver></H1>

'.Inner Exception
The remote server returned an error: (500) Internal Server Error.
Remote message The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/AcmeTestProcessc22e95d9-b0f0-4a52-a1ca-e8402778df2d' Application.<hr width=100% size=1 color=silver></H1>

'.Inner Exception
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/AcmeTestProcessc22e95d9-b0f0-4a52-a1ca-e8402778df2d' Application.<hr width=100% size=1 color=silver></H1>

'.Inner Exception
The remote server returned an error: (500) Internal Server Error.


[13435 byte] By [thesnark] at [2008-2-10]
# 1
Generally this means you are running on Windows Server 2003 and something is wrong with the IIS/WCF setup. Go to the IIS MMC and look at the virtual directories that are created - browse the svc files. If you see the wcf documentation page then everything is setup correctly. If you don't see the svc file reneded correctly - you'll need to fix your IIS install to allow WCF endpoints.
JonFlanders at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...
# 2

It seems to IIS configuration related problems. Please check the Biztalk RFID documentation.

Below discussion thread may help you:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1729809&SiteID=1

If you have RC bits then see following section in RFID documentation:

Microsoft BizTalk RFID Help > Troubleshooting BizTalk RFID > Troubleshooting Startup Issues >

Thanks,

Bhola

BholaMeena[MSFT] at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...
# 3

OK I am still having problems although I think I have made some progress...

I am starting up inetmgr.exe and from there I am trying to browse to the "hosting.svc" file in the virtual directory named "Acme94405a08-69a0-405b-8554-b4ab0775ab7d"

Here is the IIS log entries I am now getting when I try browsing to a Test.html file, the hosting.svc file and then a HelloWorld.aspx file.

Code Snippet
2007-07-17 13:49:54 W3SVC1 127.0.0.1 GET /Acme94405a08-69a0-405b-8554-b4ab0775ab7d/Test.html - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+InfoPath.1) 304 0 0
2007-07-17 13:50:25 W3SVC1 127.0.0.1 GET /Acme94405a08-69a0-405b-8554-b4ab0775ab7d/hosting.svc - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+InfoPath.1) 404 3 50
2007-07-17 13:50:35 W3SVC1 127.0.0.1 GET /Acme94405a08-69a0-405b-8554-b4ab0775ab7d/HelloWorld.aspx - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+InfoPath.1) 500 0 0

I have gone into Add/Remove programs and repaired .NET Framework 3.0

I have ran "ServiceModelReg.exe /i /x" in a further attempt to fix WCF

I have ran "aspnet_regiis.exe -r" to reregister ASP.NET 2.0

I have created a test HTML page and confirmed that I can browse to it OK (see log entries above)

I have created a test ASPX page and found I had problem browsing to it. Not sure this is an issueis should be worrying about ?

I found that anonymous access was not allowed on the "Acme94405a08-69a0-405b-8554-b4ab0775ab7d" virtual directory so in inetmgr.exe I added the machines IUSR account to the ACL for the appropriate folder. This enabled me to see the test HTML file.

When I browse to "hosting.svc" I am getting a HTTP Error 404 - File or directory not found ?

When I look in inetmgr at the Configuration->Mappings for the virtual directory I do not see any entries for "svc" extensions ?

Could this be the cause of the 404 I am seeing when I browse to the "hosting.svc" file?

thesnark at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...
# 4

I found this blog entry "Cannot Find Server (404) or Get Plain Text for WCF .svc Files From IIS?" over at http://blogs.msdn.com/wenlong/archive/2006/09/10/748294.aspx

and since this seemed to explain my missing ".svc" script maps I tried running CleanIISScriptMaps.exe as suggested.

This sure enough restored my (what I now think were corrupted) script maps on my Default Web Site and on my ACME(guid} virtual directory.

Now when I try browsing to the "hosting.svc" file I am seeing the following page.

Code Snippet

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Access to the path 'c:\inetpub\wwwroot\web.config' is denied.

Source Error:


[No relevant source lines]

Source File: c:\inetpub\wwwroot\web.config Line: 0

Any ideas... what I can try next ?

thesnark at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...
# 5

Well I checked the ACL on the web.config in the C:\inetpub\wwwroot folder and found that it only had the STS_WPG group on it so...

I added the IIS_WPG group and granted READ rights to the ACL on the web.config in wwwroot and hey presto my ACME setup now completes with no error messages.

Many thanks for those that replied to my earlier questions and put me on the correct lines for resolving my issues.

Here is what I have learnt... as indicated earlier... if you are having problems with ACME start by making sure you can browse to "hosting.svc"

Also, I would mention that I have been doing all this on a Virtual PC which is fully patched to ALL latest service packs for everything and fully updated via Microsoft Update. I did follow the installation instructions with some care. I am not sure if the problems I experienced are typical.

thesnark at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...