Peter McG's Weblog

Silverlight, WCF, ASP.NET, AJAX, Graphics, RIA


Iā€™m Peter McGrattan, a .NET developer originally from Northern Ireland.  All code and articles on this blog are developed and written in my spare time.


6 Responses to “About”

  1. Richard said


    I am attempting to follow your tutorial regarding using Socket for the stock ticker.

    It appears as if the same server which is hosting your Silverlight project is the one being used for the stock delta server. I am trying to setup a case where the Silverlight is being hosted on a seperate server than the socket server.

    Ive added a policy file server to my socket server and using Wireshark(Ethereal) I am able to see that the policy file is being sent. My Silverlight project does run but I never get the complete event on my async connect. No errors, just seems to hang.

    Any ideas?

    Much thanks!


  2. Rajeev Goel said

    Hi Peter —

    I am building a web application which is intended to demonstrate Silverlight concepts by showing various controls and samples from across the Silverlight community. Along with each sample will be its corresponding source code and a hyperlink back to the original author’s blog or artical or other source.

    I really like your PieChart control and would be interested in adding it to our content library. We would be posting the source code (XAML) for the *usage* of the PieChart control, but not the source code for the control itself. Is this okay with you? I read the license agreement attached to the code download, and I believe I’m complying with the spirit of it, but I wanted to check with you to make sure you don’t have any objections. I’d of course send you a link to our site once it goes live.


  3. Peter McGrattan said

    Hi Rajeev,

    Thanks for the comments about the Pie Chart control. As long as there is a link back to the original article as you mention (for when I update the code for Silverlight RTM for example) then it’s fine by me, I have no objections. Thanks for taking the time to ask…



  4. Peter McGrattan said

    Hi Richard,

    Apologies for the delay in getting back to your comment, I will get back to all comments eventually though.

    There are three projects in the latest solution : The StockListDemo Silverlight Application project, the StockListDemoWeb hosting Website project, and the StockDeltaService Console Application project.

    Don’t get confused about what is happening here : the Silverlight Application calls the Wcf service exposed by the StockListDemoWeb hosting website only at the start for the initial data. But for the deltas it’s not the hosting web-site that connects to the socket server, it is one or many instances of the Silverlight Application running in the browser on the client machine.

    If you’ve changed the location of the Wcf service you will need to add a Cross Domain Policy file for the Silverlight Http networking stack, have a look here to get started on that. For the Socket communication the sample uses a custom Tcp port of 4502 for communication (the allowed port range is 4502-4534) but don’t forget the built in policy requirements work only on a Tcp request to port 943. Both of these ports on the server need to be accessible to the client.



  5. Magnus Fosse said

    Hi Peter

    Your articals have been great as an introduction to the pollingduplexService in Silverlight 2.
    I was wondering if you have an example off managed windowsservice in addtion to the ones on selfhosting and webhosting.


  6. Pooran said

    Your articles are too good šŸ™‚ Keep it up šŸ™‚

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: