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.
Str
y 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).