Silverlight: How to Make Your WCF Web Service Work for All Users

Specification of the Problem A WCF web service works when a user types site in his browser with www in the name: ·          http://www.nokola.com/SampleService/ServiceClientAppTestPage.aspx Works OK!,   but it stops working if the same site is typed without www: ·         http://nokola.com/SampleService/ServiceClientAppTestPage.aspx  Fails with error message: “The remote server returned an unexpected response: 404 Not Found”…

0

Silverlight 2 Beta 1 Links to SDK Help, Reference and Samples

Here are some interesting Silvelright 2 Beta 1 documentation links: High-level portal to the Managed Reference: http://msdn2.microsoft.com/en-us/library/bb404716.aspx Controls: http://msdn2.microsoft.com/en-us/library/cc189031(vs.95).aspx Control Templates and Styles: http://msdn2.microsoft.com/en-us/library/cc278068(vs.95).aspx Web Services: http://msdn2.microsoft.com/en-us/library/cc296254(VS.95).aspx I’m posting this because I need to go to these links almost every day and it is easier to remember in the blog. Hopefully it will help someone else…

0

Calling Web Services and Accessing UI from Timer Event in Silverlight

If you try accessing UI from a timer event, you’ll Exception: Invalid cross-thread access. This happens because the timer code is running on different thread and trying to access controls on the main thread. Here’s how to fix it: Edit: thanks to jackbond on the Silverlight.NET forum http://silverlight.net/forums/p/11533/36916.aspx#36916 who pointed me in the right direction. The preferred…

4

Visual Studio 2008 Walkthrough: Creating, Hosting and Using WCF Services with Silverlight 2

Before we Start The final project is a sample that sends a string to WCF web service from Silverlight and gets a response back.  Sample source code: http://blogs.msdn.com/nikola/attachment/8168735.ashx (Edit: see comments on how to change the source to work for localhost instead of public web site) Edit: updated test link: http://www.nokola.com/SampleService/ServiceClientAppTestPage.aspx This walkthrough is provided as-is, no warranties…

17

Configuring IIS 7 to work with WCF Web Services for Silverlight 2

I’ve tried these, and there are some interesting parts that can take some time figuring out by digging in docs. This post will probably solve the 404.3 error (svc not registered as MIME type) So here’s the whole solution for getting a WCF service started up and using it from Silverlight 2 Beta 1: 1. To…

4