This page has a log of info on fixing the problem:
http://msdn.microsoft.com/en-us/library/ms752252%28v=vs.90%29.aspx
Running this command from a command prompt fixed my problem:
"%WINDIR%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r