Postback by ajax menu killing my silverlight app

2 posts, 0 answers
  1. Blasty
    Blasty avatar
    15 posts
    Member since:
    Feb 2009

    Posted 01 Mar 2010 Link to this post

    I have a normal webpage I'm building, and the  normal redirects caused by links on the page cause no issues, but once I use the telerik radmenu to navigate to another page, upon loading of that next page, my silverlight application that's on the master page doesn't load anymore  the error I get is 2104 Initialization error.  WHich all the google searches are trying to solve the problem for people who get the error constantly and the silverlight app never loads.

    In my case, the silverlight app works fine, until I try to click on a link in the asp.net ajax menu.

    What do I do?

    Here is the page I'm working on so you can see the problem. 

    link to site
  2. Blasty
    Blasty avatar
    15 posts
    Member since:
    Feb 2009

    Posted 01 Mar 2010 Link to this post

    Ok, I figured it out.

    Nothing to do with postback,

    This 2104 error was caused by the pathing to the source file for the silverlight object.

    <param name="source" value="ClientBin/Silverlight.Intro.xap"/>

    As you can see the value is sourced to the clientbin...but when using masterpages and subfolders...and so on, you need to change to

    <param name="source" value="/ClientBin/FTI.Silverlight.Intro.xap"/>

    Notice the "/" before clientbin, to say it's relative to the root.

    Apparently I'm the only person who had an issue with this, becaus all the google searches for 2104 errors point to everything else but this.
Back to Top