while using File-Less activation feature to activate RoutingService you may experience an error.
To make sure that RoutingService works at all, I added RoutingService.svc file which hosts RoutingService:
<%@ ServiceHost Language="C#" Debug="true" Service="System.ServiceModel.Routing.RoutingService, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"%>
When I open the page /RoutingService.svc the WSDL description is shown as expected.
However, when I add file-less activation (se below), the error appears, when trying to open RoutingService.svc (delete this file when using file-less activation):
Here is the configuration:
<add relativeAddress="RoutingService2.svc" service="System.ServiceModel.Routing.RoutingService" />
.. and these are errors:
"The resource cannot be found" OR
The type 'System.ServiceModel.Routing.RoutingService', provided as the Service attribute value in the ServiceHost directive could not be found.
Following configuration solves the problem:
<add relativeAddress="RoutingService.svc" service="System.ServiceModel.Routing.RoutingService, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Posted
Feb 09 2010, 11:56 PM
by
Damir Dobric