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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[signin] skin object error[signin] skin object error
Previous
 
Next
New Post
4/27/2009 5:20 PM
 

Is this an definate error and the SIGNIN SKIN OBJECT cannot be used at all? I can use the object to sign in but once I'm signed in I get this error at the top of the page:

Could Not Load Skin: /Portals/_default/Skins/amupaskin/index.ascx Error: Value cannot be null. Parameter name: format

Let me know if there is a work around.

Thanks,

 
New Post
4/27/2009 6:14 PM
 

In DNN 5 the error is not raised.

I don't know of a workaround for DNN 4

 
New Post
4/27/2009 7:03 PM
 

I got it to work on DNN 4.9.1 (in DNN 5 it works out of the box), I do not support this solution, since it's a bit of a hack so your on your own....

Disabeling the control from code does not solve the issue, but adding it dynamically if nobody is logged in does.

This means the control is not visible if you have logged in.

Add a script block at the top of your ASCX skin:

<script runat="server">
    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As EventArgs) Handles Me.Init
        'Add the Signin control to the page if not logged in.  
        If Not Request.IsAuthenticated Then
            Dim oSignin As DotNetNuke.Modules.Admin.Authentication.Login
            oSignin = LoadControl("~/Admin/Authentication/Login.ascx")
          
            Dim oPlaceHolder As Control = Me.FindControl("SigninPlaceholder")
            oPlaceHolder.Controls.Add(oSignin)
         End If
    End Sub
</script>

Then add this placeholder where you want the signin skin object to be in your skin:

<asp:PlaceHolder ID="SigninPlaceholder" runat="server"></asp:PlaceHolder>

And at a register at the top of the ASCX:

<%@ Register TagPrefix="dnn" TagName="SIGNIN" Src="~/Admin/Authentication/Login.ascx" %>

 

 
New Post
4/27/2009 10:07 PM
 

Hi Timo,

Thanks for the little hack, it seems like it should work. I do get an error and I think I know why. I placed the script on top of the ascx skin and I get this error.

Could Not Load Skin: /Portals/_default//skins/amupaskin/index.ascx Error: c:\inetpub\wwwroot\amupa\Portals\_default\skins\amupaskin\index.ascx(5): error BC30002: Type 'DotNetNuke.Modules.Admin.Authentication.Login' is not defined.

I suppose I have to do some sort of compilation but I'm fairly new to dnn so any help would be great.

Cheers,

 
New Post
4/29/2009 6:42 PM
 

You have to register the SKO:

<%@ Register TagPrefix="dnn" TagName="SIGNIN" Src="~/Admin/Authentication/Login.ascx" %>

at the top of the ASCX

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[signin] skin object error[signin] skin object error


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