Howdy,
I have a pretty big webapp that's being built in MVC. I'm also abstracting common code into a framework which sits in a separate project. Hopefully this framework will be used in other projects in the near future. There are a few Silverlight apps that are a part of this framework, and one of their jobs is to upload files a chunk at a time. In order to achieve this, I want them to communicate with a WCF service, which also lives in the framework project. I am having problems with this.
I copied the app.config data VS2008 added to my framework project for the service into the web.config, but that didn't seem to work.
After a bit of searching I discovered that you can write a service with a code behind, by creating a .svc file and a matching .cs file, so I tried creating MyService.svc like this:
<% @ServiceHost language="C#"
Service="MyFramework.MyService"
%>
As my service exists within another project, there's no code behind file to reference, so I assumed the Namespace.Class reference would be enough in there.
I also added MyService.svc/{*pathInfo} to the Ignored Routes in my Global.asax file.
However when I try to browse to localhost:x/MyService.svc, or when I try to find the service using the Add Service tool in VS2008, it just seems to hang.
What am I doing wrong?
Anthony