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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Broken skin/container preview, DNN 4.0.3+Broken skin/container preview, DNN 4.0.3+
Previous
 
Next
New Post
6/14/2006 1:52 PM
 
Using DNN 4.0.3 when I attempt to preview a skin or container I get the message "Input string was not in a correct format." with this stack trace:
------------------------------------------------------------------------------
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2753507
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +1974
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

------------------------------------------------------------------------------
Here's an example preview URL:
http://hermit/DNN/Default.aspx?tabid=35&portalid=0?SkinSrc=[G]%2fskins%2ftcmhmrs%2ftcmhmrs

Note the duplicate '?' in the string that is causing the portalid to be parsed incorrectly. Replacing that '?' with '&' results in the preview page working correctly. The problem does not exist when using Friendly URLs due to their structure not including querystring parameters.

Stry the preview had been working up until midday today (though friendly URLs have been turned off since I started this about a week ago). Looking at the code in EditSkins.ascx.vb shows the '?' is hard-coded in the preview URL so I'm not sure how this ever worked at all.

I downloaded the 4.3.0 version update just now to check the EditSkins code and it seems to be the unchanged. I also browsed for related items in the issue database but didn't find anything similar.

If anyone has some insight it would be appreciated. I'm going to hack around with the code and see what I might fix (or more likely further break).
 
New Post
6/14/2006 2:21 PM
 
UPDATE:
I was able to fix the EditSkins.ascx.vb code with little fuss and it now works fine whether using Friendly URLs or not. While working on this I noticed that the preview URL shows me the Skins admin tab. Was this always the case? It seems it used to show the main page (and that would seem to be indicated by the PortalSettings.HomePageTabId reference). So the root issue may lie with the resolving of the portal settings than directly in skin maintenance.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Broken skin/container preview, DNN 4.0.3+Broken skin/container preview, DNN 4.0.3+


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