Using Mesh from Silverlight 3
- I'd like to get started working with the Mesh framework. I have an existing Silverlight 3 application and I'd like to add some functionality to let a user login to a Mesh account and view their files from my app. How can I get started? I've heard of the project type "Silverlight Mesh Enabled Application" - would that acheive what I'm looking for? I have the impression that project type will create a Silverlight app that runs inside the Live Mesh Desktop and this isn't what I'm looking for. TIA!
回答
- Hello, currently you cannot use mesh in a normal Silverlight application. You'll have to create a Silverlight Mesh Enabled Application, and deploy it to the mesh. That is, the Silverlight application can only be deployed in your mesh (either on Live Desktop or synched to your PC). You can't host it in your own web page which is deployed on your own server.
To migrate existing Silverlight applications to Live Mesh, you must make sure there's no ASP.NET and server side dependency in your Silverlight applications. ASP.NET is not supported in Silverlight MEWA (while you can create a Live Mesh enabled ASP.NET web site using delegated authentication, that is another story). You can only host the Silverlight application in an html page. If you need to call web services, you'll have to host the services on a server that is visible to the internet, such as Windows Azure. Or you can expose your services hosted in your intranet to the internet using .NET Service Bus. And of course, a cross domain policy file must be ready.
To learn how to work with mesh, I suggest you to download the walkthroughs from http://dev.live.com/liveframework/liveframeworksdkwalkthroughs.zip.
Finally, I would suggest you to wait for Silverlight 3 RTW, which will be released in the near future. If you're using SL 3 new features, you're likely to encounter a few break changes when RTW is released.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマークNoSuch 2009年7月1日 10:55
すべての返信
- Hello, currently you cannot use mesh in a normal Silverlight application. You'll have to create a Silverlight Mesh Enabled Application, and deploy it to the mesh. That is, the Silverlight application can only be deployed in your mesh (either on Live Desktop or synched to your PC). You can't host it in your own web page which is deployed on your own server.
To migrate existing Silverlight applications to Live Mesh, you must make sure there's no ASP.NET and server side dependency in your Silverlight applications. ASP.NET is not supported in Silverlight MEWA (while you can create a Live Mesh enabled ASP.NET web site using delegated authentication, that is another story). You can only host the Silverlight application in an html page. If you need to call web services, you'll have to host the services on a server that is visible to the internet, such as Windows Azure. Or you can expose your services hosted in your intranet to the internet using .NET Service Bus. And of course, a cross domain policy file must be ready.
To learn how to work with mesh, I suggest you to download the walkthroughs from http://dev.live.com/liveframework/liveframeworksdkwalkthroughs.zip.
Finally, I would suggest you to wait for Silverlight 3 RTW, which will be released in the near future. If you're using SL 3 new features, you're likely to encounter a few break changes when RTW is released.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマークNoSuch 2009年7月1日 10:55

