The task at hand is to create an ESB OnRamp service on IIS 6. I hope this is an error of the past – but incase you don’t have a choice in choosing your IIS version AND windows 2003 – I’ve listed down the potential errors and a resolution
As you try to deploy your OnRamp, most likely you’ll come across the following two errors
Error # 1
Event Type: Error
Event Source: System.ServiceModel 3.0.0.0
Event Category: WebHost
Event ID: 3
Date: 28/08/2012
Time: 12:40:03 AM
User: MYDOMAIN\btservice
Computer: zeeWS2003
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/37990405
Exception: System.ServiceModel.ServiceActivationException: The service ‘/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc’ cannot be activated due to an exception during compilation. The exception message is: Receive location for address “/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc” not found. (The BizTalk receive location may be disabled.). —> Microsoft.BizTalk.Adapter.Wcf.AdapterException: Receive location for address “/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc” not found. (The BizTalk receive location may be disabled.)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.ReceiveLocationManager`2.GetEndpointContext(Uri uri)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHostFactory`3.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
— End of inner exception stack trace —
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
Process Name: w3wp
Process ID: 5236
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
——————————-
The second error in the event viewer:
Error # 2:
Event Type: Error
Event Source: System.ServiceModel 3.0.0.0
Event Category: WebHost
Event ID: 3
Date: 28/08/2012
Time: 12:40:03 AM
User: MYDOMAIN\btservice
Computer: zeeWS2003
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/37990405
Exception: System.ServiceModel.ServiceActivationException: The service ‘/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc’ cannot be activated due to an exception during compilation. The exception message is: Receive location for address “/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc” not found. (The BizTalk receive location may be disabled.). —> Microsoft.BizTalk.Adapter.Wcf.AdapterException: Receive location for address “/MYCUSTOMWCFAPP.GENERICWCF.ONEWAY/GenericOneWayService.svc” not found. (The BizTalk receive location may be disabled.)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.ReceiveLocationManager`2.GetEndpointContext(Uri uri)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHostFactory`3.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
— End of inner exception stack trace —
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
Process Name: w3wp
Process ID: 5236
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
———————————————-
Solution:
The only way I could get around it, was to enable 32 bit on this (f@#*$n!) 64 bit Windows 2003 machine. Run the following steps on your command prompt (not as a script! – follow them one after the other):
1. cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
2. cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
3. Make sure that the status of ASP.NET version 2.0.50727 (32-bit) is set to Allowed in the Web service extension list in Internet Information Services Manager.
MSDN Page: http://support.microsoft.com/kb/894435
4. cd C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
ServiceModelReg.exe –i
5. As a last resort, delete the receive location in BizTalk and recreate it
6. Make sure the service has rights to access the receive location
I hope this solves it !





