Skip to main content

Microsoft Silverlight

Answered Question Silverlight not appearing on my siteRSS Feed

(0)

mikesding
mikesding

Member

Member

0 points

13 Posts

Silverlight not appearing on my site

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
Ken Tucker

All-Star

All-Star

16344 points

2,498 Posts

Re: Silverlight not appearing on my site

You might have to add the silverlight mime types
http://www.adefwebserver.com/DotNetNukeHELP/Misc/Silverlight/SettingMimeType.html

mikesding
mikesding

Member

Member

0 points

13 Posts

Re: Re: Silverlight not appearing on my site

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
Andrejt

Participant

Participant

756 points

113 Posts

Silverlight MVP

Re: Silverlight not appearing on my site

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

Andrej Tozon
MVP - Client Application Development | Blog | Twitter

mikesding
mikesding

Member

Member

0 points

13 Posts

Re: Re: Silverlight not appearing on my site

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?

Andrejt
Andrejt

Participant

Participant

756 points

113 Posts

Silverlight MVP

Re: Re: Silverlight not appearing on my site

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

Andrej Tozon
MVP - Client Application Development | Blog | Twitter

mikesding
mikesding

Member

Member

0 points

13 Posts

Re: Re: Silverlight not appearing on my site

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
ken tucker

All-Star

All-Star

16344 points

2,498 Posts

Re: Re: Silverlight not appearing on my site

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 Tang - MSFT
Min-Hong...

Contributor

Contributor

3509 points

400 Posts

Re: Re: Silverlight not appearing on my site

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

Min-Hong Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

mikesding
mikesding

Member

Member

0 points

13 Posts

Re: Re: Re: Silverlight not appearing on my site

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

ken tucker
ken tucker

All-Star

All-Star

16344 points

2,498 Posts

Re: Re: Re: Silverlight not appearing on my site

 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?

mikesding
mikesding

Member

Member

0 points

13 Posts

Answered Question

Re: Re: Re: Re: Silverlight not appearing on my site

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities