This project is read-only.

initial setup problems

Feb 23, 2009 at 7:16 PM
Hi'
I'm including the slideshow on my Blogengine.NET via a usercontrol.
which has the following code.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="slide.ascx.cs" Inherits="slide" %>


<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="100%" height="100%">
     <param name="background" value="black" />
     <param name="source" value="Slideshow/Vertigo.SlideShow.xap" />
     <param name="initParams" value="ConfigurationProvider=DarkTheme,DataProvider=XmlDataProvider;Path=SlideShow.axd"/>
     <div style="width:100%; height:100%;text-align:center">
          <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
          <br />Microsoft Sliverlight is required to properly run this site.</div>
</object>

and of course the corresponding .cs file
But when I include the usercontrol on a page or entry in blogengine I just get a blank... the slideshow is not starting.
Any ideas why?
Do I need to include a speciffic silverlight source file in the project as well?



Feb 23, 2009 at 7:22 PM
Hi,

I had (have) the identical problem...

The only way I could get the Slide.Show to work was to run it in an <IFrame>...

Espavo

Gayo
Feb 23, 2009 at 7:31 PM
I tried Iframing it:

<iframe>
<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="640" height="480"> <param name="background" value="black" />
<param name="source" value="Vertigo.SlideShow.xap" />
<param name="initParams" value="" />
</object>
</iframe>

but when it shows up in blogengine it does not show as background=black... just an empty iframe
Feb 23, 2009 at 8:58 PM
now I'm just trying to run it in a seperate web-site project with just one page: default.aspx
containing:

<head runat="server">
    <title>Slide.Show 2 Quick Start Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="640" height="480">
    <param name="background" value="black" /> <param name="source" value="Vertigo.SlideShow.xap" />
    <param name="initParams" value="ConfigurationProvider=LightTheme,DataProvider=FlickrDataProvider;UserName=[xxxx];ApiKey=[xxxx]" />
    </object>
    </div>
    </form>
</body>
</html>

with the correct username and key obviously...
and I've made sure that the photos in my sets on flickr are public..
But still I just get a black area with no content....
does it use a special port or something that could be blocked by firewall??


Feb 27, 2009 at 6:15 AM
what i find interesting is that i can view it on my local machine.  this seems to be an issue where it doesn't work when served through a domain.
Mar 3, 2009 at 9:17 AM
Hello, I have the same issue, having upgraded from the previous version to get around other issues. I used the Quick Start and copied the code across to ensure no typos. I used my previous Data file.
Works fine locally from Visual Studio but not when uploaded to my website.

Hopefully someone out there has had and cured this issue
Regards
David
Mar 19, 2009 at 8:07 PM
Have you made sure you've added the MIME type for .xap files?  My remote website didn't work until I added the MIME type handler in IIS.
Mar 19, 2009 at 11:37 PM
Edited Mar 19, 2009 at 11:50 PM
That's great, many thanks, I will ask my hosting co. to check for me
Regards
David

Update-
My hosting responded super fast, found that Mime typs can be set by me in my control panel, just need to tell my customers

Many thanks gknierim for providing the answer.
Mar 20, 2009 at 1:50 AM
No problem.  Glad I could help.

Greg