Search code examples
asp.netsilverlightdeploymentwcf-ria-services

Silverlight client doesn't connect to server


I just deployed a Silverlight app.

It's an authenticated app (i.e. only logged-in users may access it, otherwise navigates to the login screen), I launch the application, I can see the Silverlight interface loading and forwarding to the login screen, but even I enter a un/pwd that exists in the server, it doesn't let me get in.

I tried throwing an exception from the AuthenticationService.GetUser (RIA), but I don't see any sign of exception on the client.

Can you think of something I missed out while deploying?

On my development environment it works great, it just doesn't get to work on the server.

Update

Note, I navigated to http://localhost/project-authenticationservice.svc and a similar page is rendered to my browser:

enter image description here


Solution

  • This really could be caused b any number of reasons. Ensure that your service endpoints have been updated correctly to reflect the server environment. Also, here are some helpful troubleshooting tips when deploying a Silverlight app with a RIA service.

    Check out this blog post.

    And here is a video that details some more deployment and debugging tips when deploying WCF RIA services: http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-51-Debugging-and-Deploying-WCF-RIA-Services

    Google Chrome has a nice set of developer tools that allow you to monitor the http network traffic that could help you as well.