Trying to migrate an existing working Silverlight application with WCF RIA services from IIS 6.0 to IIS 10.0 on Windows Server 2016 but the application fails returning 404 errors. When I install Visual Studio on the server and try running the application then it works fine within the context of IIS Express.
The server has the following components installed.
I’ve even tried to directly access the virtual RIA services created by the System.ServiceModel.DomainServices
and it results in 404 errors as well. The below is the screen print from fiddler when directly browsing from IIS. What am I missing here? Has anyone successfully deployed Silverlight with RIA services on IIS 10.0 ?
Per the comments, attached is the actual error when accessing the URL from the browser and the web.config settings
Appreciate your help on this.
After long struggle figured out that we may need to enable HTTP Activation
for the WCF Services
under Add Roles and Features Wizard
as shown in the image. The 404 error thrown by WCF RIA services is really vague and may not give you the actual error even in tools like Fiddler.
Please note, I'm using Windows Server 2016, you may see a bit different wizard depending on the server version you're using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With