WCF Adapter: System.ServiceModel.AddressAccessDeniedException
October 31, 2009 Leave a comment
Getting this error when hosting a WCF Service in a BizTalk Host?
System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:4044/SiteRegistrationService/service.svc/
Use this command in the command line:
netsh http add urlacl url=http://+:4044/SiteRegistrationService user=\biztalkwhere\biztalk is the BizTalk host account (DOMAIN\USER)
http://+:4044/SiteRegistrationService is the URL of your service
The full error looks something like this:
Event Type: Error
Event Source: BizTalk Server 2009
Event Category: (1)
Event ID: 5644
Date: 31/10/2009
Time: 12:58:22
User: N/A
Computer: WIN-3JWZSZTRVS9
Description:
The Messaging Engine failed to add a receive location "Receive Location1" with URL "http://localhost:4044/SiteRegistrationService/service.svc" to the adapter "WCF-Custom". Reason: "System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:4044/SiteRegistrationService/service.svc/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). ---> System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAll()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)".For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.