I am currently working on a WCF service application in C#. There are some dependencies from both .NET and 3rd party libraries.
After deploying it on IIS 7, the structure looks like this:
- App_Code
- IService.cs
- Service.svc.cs
- ...
- bin
- [3rd party libs].dll
- Service.svc
- Web.config
The Service.svc
file contains this:
<%@ ServiceHost Service="MyWebService.Service" %>
And when opened in the web browser on the server itself, I get the missing reference error (CS0234). So I tried to add references manually in the Web.config:
<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System" />
[...]
Now obviously I need a fully qualified name here, not just "System". But where do I get it? I feel like I've done something wrong in the process of deployment. I tried to use VS "publish" feature, but I didn't get it running yet, so I don't know if "publish" will do it for me.
So the question remains: How do I add my references to the WCF service? Web.config or otherwise...?