So I have an ASP.NET MVC web application that has a silverlight application embedded in it and I’d like the SL client to communicate with the database through a SL enabled WCF service that runs inside the ASP.NET MVC application. I have had no luck in getting this to work, the silverlight application gets a service reference to the WCF service just fine. When I run the silverlight client and call the web service it returns a NOT FOUND exception every single time. I can see through debugging that the WCF service does get called, but the silverlight errors out and nothing gets passed back.
I did try enabling the
serviceDebug includeExceptionDetailInFaults=”true”
But I still get the NOT FOUND exception. Any thoughts?
I was able to figure this out – the objects I was using as data contracts were not marked as such and even though they were “accepted” by the silverlight app and were generated by the service reference they would always through this acception after the WCF service returned.