Hi
I want to migrate the folowing typical Silverlight-situaties to the cloud. I have 2 projects:
- A web project, containing a Default.aspx-page for the Silverlight-applicatie, a web service, and a small database (MDF-file)
- A silverlight project, using the web service
I think it's a good idea to be able to run my application on Windows Azure (remote) and locally. But...
- That means I have to create a "copy" of my MDF-database (in App_Data) on SQL Azure. It also means I don't need to "publish" my App_Data folder, since it won't be used online. On the other hand I need to update the SQL Azure copy (according to my MDF-file)
everytime I deploy my application?
- I need 2 connection strings, one for the online version (an SQL Azure connection string) and one for the local version (MDF). I read I can use my two cscfg-files for that purpose?
- ServiceReferences.ClientConfig in my Silverlight contains the endpoint URI of my webservice. When I run my application locally, it's 127.0.0.1:81/..., but when I run my application in the cloud, it's cloudapp.net:80/... Can I save the endpoint configuration
in cscfg-files?
- I want to be able to use the option "Update Service Reference". Unfortunately, when my solution is not running, retrieving the necessary information from the webserver is impossible, and when my solution is running, the option to update my service reference
is grayed out.
Any suggestions?
Thanks!