I really enjoy building applications using Silverlight 4 and WCF RIA Services. Working locally works great and usually there are few issues. Deployment to our servers, however, is a different story. I have learned more than I care to know about IIS, handlers, and other server stuff while trying to get my Silverlight w/RIA applications running on our servers. Here are some tips and lessons learned from my deployment.
Setup your server for Silverlight 4 and WCF RIA Services
That should be enough to get your server configured to handle Silverlight 4 and WCF RIA Services. My first attempt at deployment worked like a charm. I was working with IIS6 and everything went smoothly. My next attempt did not go so well. The server runs IIS7 and I was having some major difficulties.
Here are some links to tips on deployment and troubleshooting that I found to be most helpful for my problem.
My Error: Could not load type 'System.ServiceModel.Activation.HttpHandler' from assembly 'System.ServiceModel, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Resolution:
Using the Configuring WCF on IIS7 document, I opened up the applicationHost.config file and removed all entries that pointed to the ServiceModel version 184.108.40.206. After doing this my application started working.
Now that our server is running Silverlight 4 and WCF RIA Services, there is no stopping us now. Keep coding my friends.