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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...4.3.1 - New page with custom skin gives a 404 not found4.3.1 - New page with custom skin gives a 404 not found
Previous
 
Next
New Post
6/28/2006 3:36 PM
 

4.3.1 - New page with custom skin gives a 404 not found

Hi!

I've downloaded and installed the last version of DNN, and uploaded a skin I've made. After creating a page with the new skin, instead of redirecting me on the new page, I get to a 404 not found page. Has anyone experienced something like that, or is it working well for you?

Here is as much information as I can provide:

Address of the page:

http://localhost/DotNetNuke/Default.aspx?tabid=53&error=The+Controls+collection+cannot+be+modified+because+the+control+contains+code+blocks+(i.e.+%3c%25+...+%25%3e).&content=0

Content of the page:

 Server Error in '/DotNetNuke/Application.


The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /DotNetNuke/Default.aspx


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 

Content of the site log:

  6/28/2006 3:21:02 PM   General Exception       AssemblyVersion: 04.03.01; Method: DotNetNuke.HttpModule ...
AssemblyVersion: 04.03.01
Method: DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke/Host/Host%20Settings/tabid/16/ctl/Tab/portalid/0/Default.aspx
ExceptionGUID: 5b4ba105-6387-4a1f-adf7-66c532d1c32f
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Unhandled Error:
Message: System.Exception: Unhandled Error: ---> System.Web.HttpException: Not Found at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: DGCS22
  6/28/2006 3:21:02 PM   Page Load Exception   host     AssemblyVersion: 04.03.01; Method: System.Web.UI.Control ...
AssemblyVersion: 04.03.01
Method: System.Web.UI.ControlCollection.Add
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 53
ActiveTabName: adf
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke/Host/Host%20Settings/tabid/16/ctl/Tab/portalid/0/Default.aspx
ExceptionGUID: 138a0085-820d-40f1-948f-54deb5defbee
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Message: DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in C:\MyProjects\DotNetNuke\Default.aspx.vb:line 465 at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: DGCS22
  6/28/2006 3:21:01 PM   Tab Created   host   My Website   TabID: 53; PortalID: 0; TabName: adf; < ...
TabID: 53
PortalID: 0
TabName: adf
Title: asdf
Description: asdf
KeyWords:
Url:
ParentId: -1
IconFile:
IsVisible: True
SkinSrc: [G]Skins/SiteWeb/Accueil.ascx
ContainerSrc: [G]Containers/SiteWeb/SansDeco.ascx
Server Name: DGCS22


Alexandre Vaillancourt
 
New Post
6/29/2006 11:47 AM
 

Additional information:

I've tested the same skin with DNN 4.0.3 And it works OK.

I have some images on the skin. When uploading it, DNN adds a <%= SkinPath%> before each path in src= attributes. The controls collection seems to dislike it, since it's telling me that it cannot add the skin control because it contains codeblock.

I tried to remove the code blocks from the generated ASCX and here is an error that I get when I load the page:

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot locate ContentPane for Skin

Here is what the line concerning this from the site log :

6/29/2006 11:46:02 AM   Module Load Exception   host     ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: -1
Method:
FileName:
FileLineNumber: -1
FileColumnNumber: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
AbsoluteURL:
AbsoluteURLReferrer:
ExceptionGUID:
DefaultDataProvider:
InnerException: Cannot locate ContentPane for Skin
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot locate ContentPane for Skin
StackTrace:
Source:
Server Name: DGCS22


Alexandre Vaillancourt
 
New Post
6/30/2006 3:00 AM
 

Seems you have a problem on your skin: "...Cannot locate ContentPane for Skin"

 


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
7/4/2006 10:05 AM
 

Hmmm, that's wierd because the skin was tested both in 4.0.3 and 4.3.x. It's working ok in 4.0.3 and crashing in 4.3.x. And what is a "ContentPane for Skin" anyways?

I'll test with 4.3.2 before investigating anymore.


Alexandre Vaillancourt
 
New Post
7/4/2006 1:08 PM
 

It seems you have to have a content pane named "ContentPane"... so.. yeah, basically, that was the problem. That's wierd, though, that it worked well with 4.0.3.

The way to tell you there's a problem is quite wierd, though. I think the check for that should be made when the skin is uploaded.. ;o/ anyways...

My problem is fixed now, thanks a lot ;o)


Alexandre Vaillancourt
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...4.3.1 - New page with custom skin gives a 404 not found4.3.1 - New page with custom skin gives a 404 not found


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