Search code examples
c#wcfwcf-ria-services

RIA Services 404 Error on Windows Server 2012


I have a large silverlight application using RIA Services that I'm migrating from WS2008 to WS2012. This application works fine on the 2008 machine.

On the new machine I've:

  • Enabled WCF Activation, IIS, applicable security, etc.

  • Installed RiaServices.msi with SERVER=TRUE

Regular svc's work (I have a few that I use for logging) just fine, I'm able to communicate with them as expected.

When a call is made to a domain service, however, I get a 404 error.

Any call to a domain service under /Clientbin/service_name.svc returns a 404 error.

I've been pulling my hair out for the last couple of days trying to figure this out. Any ideas?

Thanks!


Solution

  • I eventually solved this. 404 is apparently what you get with a RIA service when there is some underlying error before you get to your execution code. The best way to get at that for me at least, was to create the svc file that doesn't exist (pretend like it's a normal wcf service), place it in the ClientBin folder, and then use Fiddler. Once the file was there, my 404 became a 500, with a description of the error in Fiddler.

    In my case, the error was the SqlServerTypes libs were not installed on the server, and it was throwing up.

    Hope it helps someone.