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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to debug DNN Silverlight issues?How to debug DNN Silverlight issues?
Previous
 
Next
New Post
6/30/2010 5:26 PM
 
Hi Rodney,
Thanks for your suggestion on my post.  You did give me a brainwave.  I am gonna try shifting the location of the Xap to the desktopModules Folder.  Well as for your problem, I have not had any problem hosting my SL2 app in Dotnetnuke(now on 5.4.2).  Maybe I will paste for you the View.ascx file so you could see the source and the code behind.  Maybe It might give you an idea how you can code yours

The .ascx File:

<%@ Control Language="vb" AutoEventWireup="true" CodeBehind="ViewLMS.Reservations.ascx.vb" Inherits="LMS.Reservations.ViewLMS_Reservations" %>
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>
<table style="width:100%;">
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
<asp:Silverlight ID="Silverlight1" runat="server" Enabled="true" EnableHtmlAccess="true" Version="2.0"
Visible="true" Source ="~/DesktopModules/LMS.Reservations/ClientBin/SDASL.Reservations.xap" Height = "700px" Width = "100%" Windowless ="true">
</asp:Silverlight>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>

And the code behind:

Imports DotNetNuke.Entities.Users

Namespace LMS.Reservations
    Partial Public Class ViewLMS_Reservations
        Inherits Entities.Modules.PortalModuleBase

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Try
                 Dim MyReportAddress As String = System.Configuration.ConfigurationManager.AppSettings("ReportAddress")
                Dim initParams As String = String.Format("PortalId={0},ModuleId={1},IsEditable={2},UserId={3},ReportAddress={4}", PortalId.ToString, ModuleId.ToString, IsEditable.ToString, UserController.GetUserById(PortalId, UserId).DisplayName, MyReportAddress)
                Silverlight1.InitParameters = initParams

            Catch ex As Exception
                ProcessModuleLoadException("LOG IN TO VIEW THIS MODULE", Me, ex, True)
            End Try
        End Sub

    End Class
End Namespace

I know the tag structure when you use SL3 and above is different but I hope these examples give you an idea.

Kind Regards,
Alex.
 
New Post
6/30/2010 5:34 PM
 
Try to test it with my little module to see if the dnn module you use have some error.
http://dnnslmedia.codeplex.com/

Works fine for all my Silverlight apps.
 
New Post
6/30/2010 8:21 PM
 
Rodney Joyce wrote:
From what I understand it is all client-side so it would not need anything in particular on the server?

 Correct. You are installing a debugable Silverlight run-time that works in a debug session on your computer not the server.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
7/1/2010 5:40 AM
 
Jan Olsmar wrote:
Try to test it with my little module to see if the dnn module you use have some error.
http://dnnslmedia.codeplex.com/

Works fine for all my Silverlight apps.

 I didn't even know that existing Jan - that would have saved me a few hours ;)

Well for some reason FireFox is just not reporting the errors, but IE is - using IE I managed to figure out the problem (invalid Path). The strange thing is that it is still not showing up in Firefox but it is in Internet Explorer on my dev box.

so i guess i have to do some Google to work out why Firefox is not displaying the problem. Actually - it could be related to the recent FF update (3.6.6) - after upgrading I could no longer debug in Firefox (no .pdb symbols were being hit) - after a LOT of searching it turns out there was a bug in FF in the latest version - you have to disable a setting (something about running in own processes) - perhaps by disabling that I caused this. Will find out and update.

Thanks for all the suggestions... 

ps - Jan - it would be nice if the Silverlight Loader could support 100% width and height as well as alignment (I want to center align it).


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
7/1/2010 6:58 AM
 
I will add it in next release. % wdith hight. But if I recall right there was some issue in some browser with 100% wiidth.

I need to add this too...
<param name="uiculture" value="<%= System.Threading.Thread.CurrentThread.CurrentUICulture %>" />
<param name="culture" value="<%= System.Threading.Thread.CurrentThread.CurrentCulture %>" />
<param name="autoUpgrade" value="true" />
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to debug DNN Silverlight issues?How to debug DNN Silverlight issues?


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