asp.net mvc - Silverlight 2104 Error w/ MVC project as Host -


i have odd 2104 error occurring when hosting silverlight control in mvc site.

if go http://mywebsite.com/somecontroller silverlight application load correctly. however, if go http://mywebsite.com/somecontroller/index fails load , 2104 error. tried change action name other index, still no luck.

right now, it's boilerplate silverlight control code, need add initparams it, need action http://mywebsite.com/somecontroller/index/1/2

does have ideas on causing this?

code 2104 "could not download silverlight application. check web server settings". list of codes here.

you using relative url silverlight object, doesn't resolve correctly if in subdirectory.

use tilde syntax correctly point silverlight object:

<param name="source" value="<% = url.content("~/clientbin/mysilverlightthing.xap") %>"/> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -