This is a migrated thread and some comments may be shown as answers.

Postback by ajax menu killing my silverlight app

1 Answer 46 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Blasty
Top achievements
Rank 1
Blasty asked on 01 Mar 2010, 06:36 AM
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

1 Answer, 1 is accepted

Sort by
0
Blasty
Top achievements
Rank 1
answered on 01 Mar 2010, 09:40 PM
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.
Tags
Menu
Asked by
Blasty
Top achievements
Rank 1
Answers by
Blasty
Top achievements
Rank 1
Share this question
or