View Full Version : The requested service could not be activated. (WCF)
jonathanm
07-23-2008, 12:21 AM
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
Aristotle
07-23-2008, 07:50 AM
Check out this post for an example on how to set up a WCF service on a DiscountASP server:
http://community.discountasp.net/showthread.php?p=30492
Aristotle
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
jonathanm
07-23-2008, 08:36 AM
I fixed the problem all I had to do was to add
<serviceHostingEnvironment>
[b]
<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.
jonathanm
07-23-2008, 08:40 AM
Like this sorry
<serviceHostingEnvironment>
[b]
<add prefix=http://www.mydomain.com/wheremyserviceis />
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
vBulletin® ©Jelsoft Enterprises Ltd.