Home > English > Building a Windows Phone 7 App using JSON/ASP.NET MVC Data Service Layer

Building a Windows Phone 7 App using JSON/ASP.NET MVC Data Service Layer

I had a great time speaking at Charlotte’s Enterprise Developers Guild last night. Here is a link to my slides and sample code.

Thanks again to everyone who came out!

  1. June 14, 2011 at 8:59 pm

    Hi Matt,

    I just downloaded your code and there are a couple problems:
    (1) the Charlotte.WP7.Models folder’s Game.cs and NotifyObject.cs files have D:\Work\… paths. I think this is resolved by deleting those files and replacing them with the same files in the Charlotte.Web project (?)
    (2) the Charlotte.Web project won’t load. The error message says “The project type is not supported by this installation.” although I’m running Visual Studio 2010 Ultimate.

    Any idea what I can do to fix this?


    • June 14, 2011 at 9:11 pm


      I am using the MVC 3 addin as well. If you use the WebPlatformInstaller from Visual Studio you can add this. Let me know if that allows you to open the Web project.



  2. June 15, 2011 at 4:48 am

    Hi Matt,

    Installing the Web Platform resolved issue #2 (but that installation took forever!) – the code now compiles, runs in the emulator, and seems to work. I had Visual Studio set up the website, but when it automatically opens the http://localhost:4204 page, I get a server error in the browser:

    Server Error in ‘/’ Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been
    removed, had its name changed, or is temporarily unavailable. Please review the following URL and make
    sure that it is spelled correctly.

    Requested URL: /

    I’m assuming that was not supposed to happen – ?


  3. June 15, 2011 at 12:40 pm


    Resolving issue #1 is a matter of removing the files and adding them as Linked files again. I am sharing those objects between client and server. The links were still relative to my machine and that is why you were getting that error.

    As far as the 404, I am not sure what is happening. Let me try and replicate it or you perhaps you could zip up your solutions and let me see what is happening.



  4. June 15, 2011 at 1:07 pm

    Hi Matt,

    Thanks – I just changed those files to be linked files again. Still getting the 404 – will email you the zip in a minute…


  5. June 16, 2011 at 1:43 pm


    I had a chance to go through your project. When I opened up the project I got the dialog about remapping the URL to the Web project’s folder. That is normal.

    The other question about the 404. That is to be expected since my example was using MVC purely as a data access mechanism and no UI. I forgot that I pulled any views for the HomeController by design so that I was using it strictly to give me data. You can change or modify this to whatever you want but this example was for piping data to WP7.

    So to answer your questions, it is working exactly as planned.

    I would make sure the WP7 project is set as your startup project.



  6. June 16, 2011 at 8:35 pm

    Hi Matt,
    I should have realized that about the Web service project not having a UI. 😉
    Thanks for the code & for the quick replies – much appreciated!

  7. June 22, 2011 at 6:52 am

    Some genuinely wonderful articles on this website , thankyou for contribution. cpanel reseller | reseller web hosting |

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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: