The requested service could not be activated. (WCF)

Discussion in 'ASP.NET / ASP.NET Core' started by jonathanm, Jul 23, 2008.

  1. When I try to run my WCF service I get a "The Requested Service could not by activated." It has something to do with the endpoint element in my webconfig file. Which contains the address to the service.

    Thanks
     
  2. I fixed the problem all I had to do was to add

    <serviceHostingEnvironment>

    <add prefix=http://www.mydomain.com/wheremyserviceis />
    </baseAddressPrefixFilters>
    </serviceHostingEnvironment>

    to my web.config file and it worked.

    This was of course in between the </system.serviceModel> element.
    Now I haven't tested my WCF silverlight enabled services yet buthopefully they will work also.
     

Share This Page