Advertisement

New Silverlight videos posted

The first of my Silverlight videos have posted which cover some networking stuff that I’ve been blogging about already.  If you want to see a walk through of things you might have already read, please take a look at them:

There are more coming and I’m interested in hearing your comments so please give them.  If you have suggestions for things that need to be demonstrated to help others (or yourself), please let me know about them as well!

  1. 4/18/2008 12:07 AM | # re: New Silverlight videos posted
    Hi there,

    Looks like there is bug in it that I got cross domain policy on my web server where Web service has been hosted.

    <?xml version="1.0" encoding="utf-8"?>
    <access-policy>
    <cross-domain-access>
    <policy>
    <allow-from>
    <domain uri="*"/>
    </allow-from>
    <grant-to>
    <resource path="/" include-subpaths="true"/>
    </grant-to>
    </policy>
    </cross-domain-access>
    </access-policy>


    I also got a SL application on same server.

    Whenever I am trying to access Web Service http://localhost/myWebService.asmx from http://localhost./SLapplication

    It does not work.

    The only difference is (.)

    I can understand SL would consider this as a separate URL by having a dot, but how to change policy that it cover dot too?


    Ricky
  2. 4/18/2008 10:07 AM | # re: New Silverlight videos posted
    @ricky: for increased security on path comparisons we disallow "." and ".." -- do you have a scenario where that is required?
  3. 4/18/2008 9:38 PM | # re: New Silverlight videos posted
    Hi Tim;

    Just watched the WCF video and it's very nice. Direct to the point and very clear.

    Since SL has to go through some service (preferably, a WCF one), we need to use WCF to build services for data access and also communicate with other services.
    My first question is, for above purpose, how expert do we need to become in the whole WCF stack for developing SL applications?
    And secondly, what books or resources do you recommend to a novice WCF developer?

    Thank you and looking forward to your next series!
    ..Ben
  4. 4/19/2008 5:37 PM | # re: New Silverlight videos posted
    Hi Tim,

    Could you tell me please, will the RTM version of SL 2.0 contain a XamlWriter?

    Thanks.
  5. 4/20/2008 10:22 AM | # re: New Silverlight videos posted
    Good video, but how do you debug these apps? If you launch the website and attach the debugger then there are no symbols loaded so the breakpoints don't work and you can't run the C# project because of the web service reference. Can you help here?
  6. 4/20/2008 8:21 PM | # re: New Silverlight videos posted
    @robert: good question on debuggin. select the web project, right-click and choose property pages. click the startup options tab and then select silverlight checkbox to debug silverlight.

    hope that helps!
  7. 4/20/2008 8:24 PM | # re: New Silverlight videos posted
    @mehran: have you seen the XDocument LINQ to XML support? will that work for you having an XmlWriteTo() function?
  8. 4/20/2008 8:39 PM | # re: New Silverlight videos posted
    @ben: as far as how much different, i think WCF enables a lot of different scenarios, but if all you need is an HTTP endpoint, you already know how to do all of this. to learn more about WCF, the top sellers are the titles from o'reilly: http://tinyurl.com/3lvna8
  9. 4/21/2008 5:34 AM | # re: New Silverlight videos posted
    OK, but you need to make sure the web project is set as the starup project and hit F5. This then runs (by default) the svc file and I you to set the startup page to the aspx test page in the startup options as well as check the silverlight box.
  10. 4/21/2008 2:03 PM | # re: New Silverlight videos posted
    Hi,

    Thanks for the reply, I've created a XamlWriter using XmlWriter and Reflection(http://weblogs.asp.net/mehrantoosi/archive/2008/03/03/silverlight-s-xamlwriter.aspx) in the age of SL 1.1 :) but I want to see is that worth to rewrite the class for SL 2.0 or it will be supported in the final version?

    Thanks Again.

 
Please add 4 and 3 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)