Skip to main content
Home Forums General Silverlight Getting Started Silverlight not appearing on my site
11 replies. Latest Post by mikesding on November 5, 2009.
(0)
mikesding
Member
0 points
13 Posts
11-01-2009 2:51 PM |
Hi everyone - I have a problem with silverlight on my website. I have created the test silverlight application using Expression Blend, and added this silverlight application using Expression Web (v3).
The problem is that the silverlight app does not seem to load any of the actual content - on my site , if you right click where the bar should be, you can see it says "Silverlight", but it is not visible.
The other confusing part is that it works fine when I use the "Preview In Browser" function in Expression Web
I have been through some possible problems - all the files are definitely on the site, and I have added what I believe is all of the correct MIME types - ps my site is here
I really hope someone has some idea as I am completely out of ideas now! If you have any questions I havent explained, feel free to ask
Ken Tucker
All-Star
16322 points
2,492 Posts
11-01-2009 2:56 PM |
11-01-2009 3:13 PM |
Hi Ken, thanks for the quick reply. I have already added all the necessary MIME types and this did not seem to fix the problem
Andrejt
746 points
113 Posts
11-01-2009 3:18 PM |
Look in your browser's (ie?) status bar (on the left) - any error/warning icon there? Looks like your Silverlight application did load but encountered an error, possibly when communicating with server (e.g. wrong address, cross-site, etc.)?
Andrej
11-01-2009 3:27 PM |
No warning in IE or Chrome that I can see - are there any plugins that might shed some light on what the problem might be?
11-01-2009 4:18 PM |
SilverlightSpy would definetely help. And there's also windbg (ms debugging tool). You can also try and modify your app to report (like MessageBox) its progress to catch the wrong turn. Andrej
11-01-2009 5:10 PM |
Thanks for those - I used SilverlightSpy on my site and it just sits there saying "Loading" for a while, then "unable to load", no explanation or reason. Seems very odd; all the files seem to have the right permissions so i really dont know whats going on here
ken tucker
11-01-2009 6:31 PM |
Try giving the silverlight app a definate height and width not a %.
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1500" height="1500"> <param name="source" value="ClientBin/SilverlightMapLight.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a> </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
Min-Hong...
Contributor
3375 points
377 Posts
11-04-2009 9:23 PM |
Hi,
Em, this sounds weird. Can you upload your project to skydrive.live.com so that we could reproduce it and find you a solution.
You may try to disable all your browser plugins, set it to the original status, how is it going?
Best Regards
11-05-2009 8:50 AM |
The project itself doesn't seem to matter - I have tried many different ones (I was merely testing it online, I do not have a specific silverlight app yet), including deep-zooms and videos and nothing seems to work once on the site. Someone from these forums even sent me a test silverlight app that worked on their site to test, still not luck.
Could it by any chance be something with my webhost? I can't think what exactly but definitely seem to be running out of ideas here.
Thanks for your replies
11-05-2009 9:15 AM |
What does fiddler, web developer helper, or fire bug show is going on when you try and load the web page with the silverlight app on it?
11-05-2009 9:35 AM |
Thanks Ken - i used the web developer plugin and it showed that the .xap file wasn't being loaded even though it was quite clearly there. I then noticed that it was trying to access a file with capitalised letters, and the file on the site was all in lower case... so after changing it to the correct case, it worked fine.
Thanks all for your help - can't believe it was something as small as this.
Mike.