Silverlight Script Web Project in VS 2008

Software

While trying to see if there was an easier way to run Silverlight pages via localhost instead of via the filesystem, I poked around with the new Silverlight Script Web project type in VS 2008. This allows me to run pages using localhost, but it’s a little weird: the attached “script” file is a .js file, not a .cs code-behind file as with the Silverlight Project template.

Check out the two different context menus for the XAML files in each project. Here’s the one in the Silverlight Project project:

Silverlight XAML context menu

And here’s the one in the Silverlight Script Web project:

Silverlight XAML context menu

When I try to manually copy over my XAML and HTML pages from the Silverlight Project to the Silverlight Script Web project, I get the following nasty error:

Silverlight Error AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD

Which is probably fixable with some judicious configuration h4x but not at my current level of Silverlight knowledge.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Furl
  • Ma.gnolia
  • Reddit
  • TwitThis
5 Comments

5 Comments

  1. Lead Magnet  •  Jan 13, 2008 @4:52 am

    Well your further along than I am!

    A week after getting VS2008, I still can not figure out how to install the VB and C# Silverlight Project Types!!

    Additionally, in Exp Blend, the “web” project types are not there!

    I’ve been watching all these cool webcasts with MS dudes using these project types (you can see them when they “create new” from either IDE) but can’t “follow along”.

    Are these a seperate download?

    Are they not available in VS2008 Pro? Blend 1.0?

    WTF!!!!

  2. Lead Magnet  •  Jan 13, 2008 @4:58 am

    Well….your further along then I am.

    A week after getting VS2008 Pro, I’m no closer to figuing out how to get the Silverlight Project Types to display!

    I’ve installed the Silverlight 1.0 SDK, no luck.

    Also, Blend 1.0 does’t have the “web” project types I keep seeing in all these nifty webcasts from MS and others I keep watching!!

    MS just can’t keep things easy, can they!!

    I just might dump VS2008 and re-install 2005. At least I have the Silverlight addin for that IDE!!

  3. UpsideDownTire  •  Feb 3, 2009 @10:41 am

    Hi Lead Magnet,

    I am such a noob to Silverlight. However, I have been using VS2008 for a long time and recently installed the Silverlight 2.0 SDK, not the 1.0 SDK. That did install the Project Types and Templates including “Silverlight Application”, “Sliverlight Class Library” and “Silverlight Script Web”.

    If this does not work for you, post back here and I’ll double check my downloads on the that day.

    UDT

  4. Stu  •  Mar 3, 2009 @5:30 pm

    You need to download the Silverlight Tools for Visual Studio 2008 SP1 at:
    http://msdn.microsoft.com/en-us/silverlight/bb187452.aspx

  5. Latisha Mcgraph  •  Mar 6, 2010 @7:10 pm

    Hello, I came across this article while looking for help with Microsoft Silverlight. I have recently switched internet browser from Opera to Internet Explorer 7. Now I seem to have a problem with loading sites that have Microsoft Silverlight. Every time I go on a page that needs Microsoft Silverlight, the page freezes and I get a “npctrl.dll” error. I cannot seem to find out how to fix it. Any help getting Microsoft Silverlight to work is very appreciated! Thanks

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">