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...Administration ...Administration ...SkinObject insertion HelpSkinObject insertion Help
Previous
 
Next
New Post
8/7/2006 1:32 PM
 

Hi!

 

I've developped a skin object. I installed it on my DNN installation, but I'm not sure how to test it, i.e. how to insert it on my skins.

Could anybody help me with that?

I tried to add that in the skin file

<%@ Register TagPrefix="dnn" TagName="PageName" Src="~/DesktopModules/DogicoCom-PortalName/PageName.ascx" %>

with:

<dnn:PageName runat="server" id="dnnPageName" />

But when I load the page it gives me the error "Object not set to a reference of an object" with the stack trace

   at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in C:\MyProjects\DotNetNuke_4.3.4_Source\Website\Default.aspx.vb:line 459
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.Page.OnInit(EventArgs e)
   at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) in C:\MyProjects\DotNetNuke_4.3.4_Source\Library\Components\Shared\PageBase.vb:line 209
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Thanks


Alexandre Vaillancourt
 
New Post
8/7/2006 1:58 PM
 

This means that something within your code is not initialized properly.

Did you inherit from SkinObjectBase?

If you want to display the current page name (aka TabName) in your skin, you can also do it by inserting this line of code:

<%= PortalSettings.ActiveTab.TabName %>

 

 


DotNetNuke Modules from Snapsis.com
 
New Post
8/7/2006 2:15 PM
 

Ok, that's quite wierd. I tried to insert it the "dot net" way, i.e. adding a register tag, and the tag, ant etc... and it gave me the error above.

Then I tried to add it the skin/bracket way ([PAGENAME]), and it gave me an error like "cannot load skin because the .cs file not found in [folder]".. that was wierd because the dll was somewhere installed withing DNN. So I copy the file.. then it says that the class is partially declared somewhere else, so I add the partial to class definition, and the it tells me that my label is also declared somewhere else.. so i comment it and the it works...

That's wierd.

Thanks for your help, though!  


Alexandre Vaillancourt
 
New Post
8/7/2006 2:20 PM
 
Do I have to assume that I have to ship my .cs instead of my .dll?

Alexandre Vaillancourt
 
New Post
8/7/2006 3:17 PM
 

availlancourt wrote
Do I have to assume that I have to ship my .cs instead of my .dll?

Depends on if it'll be DNN4 on ASP.Net 2.0 or not, and if you want to let the source get dynamically compiled or not.

On ASP.Net 1.1, there is no option for dynamic compile of source, so the answer would be No in that case.

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SkinObject insertion HelpSkinObject insertion Help


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