User609686767 posted
So I've been deploying my WCF Service by publishing it manually and hosting in IIS, where VS2010 creates all the DLLs and the svc file for me, all good.
Then came TFS. So my service library must be built by TFS, but I need a svc file to be created everytime. I've already spent 2 days Googling and experimenting how to convert my service library to service app, from simply adding a text file (renaming it to
.svc and adding that one line of code
...@ServiceHost...) to creating a website (deleting the code and interface files that are automatically created when adding a service) but I always end up with this error.
I've copied the contents of my app.config from the service library to the web.config of the service application /web site that I have created, still no luck.
What is this serviceApplication attribute that I'm missing?
I've created a test project to simulate what I was doing, and below error is what's showing consistently. What do I need to set or know?
TIA
EDIT:
I think this error is caused by the missing code-behind of the .svc file. Adding a text file and renaming it as .svc with all the servicehost attributes doesn't work. Only by adding the wcf service file complete with its code-behind can I make this test
project work.
So If I now have a .svc file created from scratch, how do I point it to use the code behind of my service library, I think that might work?
Thanks
The type 'WcfService4.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.