Friday, August 1, 2008

Silverlight. Week 1.

Ok. Several things around Silverlight.

Data support is cool, but escenarios are no so well documented. For instance, in my case I need to deploy a SL app that consumes data from a WCF web service, and...catches the username from the user in turn.

In order to catch usernames, you need to add some code to the ASP.Net SL host page, to put this information in a hidden field, to recover it later from Silverlight. And, to have some users, you must add them to the server, and in the IIS stablish the windows authentication access on.

This part is cool. You see your user´s name when load the app, but when you try to get the data, ...PUFFFF. Nothing happends. Why?

Well, a nasty detail appear: WCFs only work with anonymous access, so the app and the web server can´t live in the same site.

By the way, its important to create a deployment environment, cause there are lots of surprises that the dev environment hides from us.

No comments: