Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Has anyone been able to make a Silverlight 2.0 application work with DotNetNuke?Has anyone been able to make a Silverlight 2.0 application work with DotNetNuke?
Previous
 
Next
New Post
3/11/2008 2:04 AM
 

I tried the skin doctype solution as above but still its not working for me. I am using Windows XP SP2 with IIS 5.1. My DNN module that contains silverlight 2.0 xap controls will display in my test solution but will not show when I load them in a DNN page. IIS 6 is not available on Windows XP and anyway if it works with my test solution I should not need it to run in DNN. I have set the mime type for .xap as "application/x-silverlight-2b1".

My doctype file "Horizontal Menu - Fixed Width.doctype.xml" contains

<SkinDocType>

<![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  ]]>
</SkinDocType>

Going nuts please help me!

thanks heaps Alistair

 

 
New Post
3/11/2008 10:03 AM
 

I also have it working on Windows 2003 (IIS6):

http://dnnsilverlight.adefwebserver.com/Default.aspx?tabid=65

Again with no changes to the Doc Type. I simply installed the latest DotNetNuke and then opened the site up in Visual Web Developer Express and allowed the wizard to upgrade it to a asp.net 3.5 site.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/11/2008 3:17 PM
 

 Hi again.Thank you for answer but I sill have this problem.

I think that everything is correctly set in my IIS because after launching DNN site in log this entry appears:

2008-03-11 18:47:10 127.0.0.1 GET /dotnetnukehelp/DesktopModules/SModule/Silverlight2_HelloWorld/SilverlightApplication1.xap - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0b;+Windows+NT+6.0) 304 0 0

While openning DNN via VS08 no message about upgrading to .net version 3.5 shows so I assume that it already is in v 3.5.

Maybe my DNN module is wrongly constructed. I simply created new module following the tutorial: http://adefwebserver.com/DotNetNukeHELP/LinqTutorial/LinqTutorial3.htm and after that my View.ascx looks like this:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="View.ascx.cs" Inherits="DotNetNuke.Modules.SModule.View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Silverlight Hello World</title>
    <style type="text/css">
        #silverlightControlHosta
        {
            height: 100%;
        }
    </style>

    <script type="text/javascript">
    function onSilverlightError(sender, args) {
        if (args.errorType == "InitializeError")  {
            var errorDiv = document.getElementById("errorLocation");
            if (errorDiv != null)
                errorDiv.innerHTML = args.errorType + "- " + args.errorMessage;
        }
    }
    </script>

</head>
<body>
     <!-- Runtime errors from Silverlight will be displayed here.
 This will contain dugging information and should be removed or hidden when debugging is completed -->
    <div id='errorLocation' style="font-size: small; color: Gray;">
    </div>
    <div id="silverlightControlHost">
   
        <object data="data:application/x-silverlight," type="application/x-silverlight-2-b1"
            width="100%" height="100%">
            <param name="source" value="DesktopModules/SModule/Silverlight2_HelloWorld/SilverlightApplication1.xap" />
            <param name="onerror" value="onSilverlightError" />
            <param name="background" value="white" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=108182" style="text-decoration: none;">
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
                    style="border-style: none" />
            </a>
        </object>
        <iframe style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe>
        <p>silverlight</p>
    </div>
</body>
</html>

 Any idea why silverlight content didn't appear?

 

 

 

 

 

 

 
New Post
3/11/2008 7:01 PM
 

You will want to simply install (using Host --> Module Definitions --> Instal New Module) the module from here:

http://dnnsilverlight.adefwebserver.com/Portals/0/Silverlight2_HelloWorld_01.00.00_Install.zip

It should then work. You can then open up the module and notice how it was coded. It appears you have to use the Silverlight control NOT the JavaScript method. You also need to have this in the code behind:

 

    public partial class View : PortalModuleBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (DotNetNuke.Framework.AJAX.IsInstalled())
            {
                DotNetNuke.Framework.AJAX.RegisterScriptManager();
            }

        }
    }



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/12/2008 2:00 AM
 

Hi Guys,

             Sorry my silverlight 2.0 content is still not showing in my module. I had the code for the ajax control in the constructor, I believe that this is required as the silverlight 2.0 control is implemented with the AJAC control kit. Here is the code for my view page control. I tried changing the path for the client bin and when I show the page with the module on it the source shows the new path so the location of the content must be correct (anyway thats relative to the module control which I build separately to DNN). Do I need an updatePanel?

I like using the register statement so I can get intellisense on the silverlight 2.0 control

I am also using a compiled module rather than dynamic compilation. Maybe I need to upgrade my version from 4.8.0 to 4.8.1.

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewOperatorAccountDetails.ascx.cs" Inherits="OperatorAccountDetails.ViewOperatorAccountDetails" %>@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"

 

TagPrefix="asp" %>

<!

<

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">body style="height:100%;margin:0;">

 

 

<%

<%

Source="~/ClientBin/SilverlightRangeControl.xap"

Version="2.0" Width="100%" Height="100%" ScaleMode="Stretch" />--

 

 

 

<div style="height:100%;">-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" >--%>-- <%--<asp:Silverlight ID="Silverlight2" runat="server"%><asp:Silverlight ID="Silverlight1" runat="server"Source="~/ClientBin/OperatorAccountDetailsSilverlightApplication.xap"Version="2.0" Width="100%" Height="100%" ScaleMode="Stretch" />

<%

 

-- </asp:UpdatePanel> --%></div>

 

</

body>

<%

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Has anyone been able to make a Silverlight 2.0 application work with DotNetNuke?Has anyone been able to make a Silverlight 2.0 application work with DotNetNuke?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out