Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jim 5 posts 25 karma points
    Nov 24, 2009 @ 11:19
    Jim
    0

    FormatAsDate causing error in page preview

    Not sure if this is a bug or I have made a mess of something somewhere. So appologies if it is down to something daft I have done!

    I have a Datepicker in a document type that is giving me a yellow screen of death with the error "String was not recognized as a valid DateTime."when I attempt to get a preview of a document using the preview button in umbraco.

    The problem does not occur if I view the live published page.

    I am using an umbraco:Item tag in my template to pull the date from the doc type. From playing round with it, the problem starts happening when I set the property formatAsDate="true" on the umbraco:Item tag.

    I got around it by creating an .net usercontrol to do the date formatting and calling it from an umbraco macro.

    So I am just wondering if am just missing something obvious, or there is problem using the formatAsDate property in conjunction with the document preview?

    Thanks

    Jim

     

    Info:

    Umbraco 4.0.2.1
    Vista
    IIS7
    MySQL 5.1.34

    Yellow Screen:

    String was not recognized as a valid DateTime. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

    Server Error in '/' Application.

    String was not recognized as a valid DateTime.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: String was not recognized as a valid DateTime.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [FormatException: String was not recognized as a valid DateTime.]
       System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2838018
       System.Convert.ToDateTime(String value) +98
       umbraco.item.parseItem(IDictionary attributes) +556
       umbraco.item..ctor(IDictionary elements, IDictionary attributes) +881
       umbraco.presentation.templateControls.ItemRenderer.GetFieldContents(Item item) +417
       umbraco.presentation.templateControls.ItemRenderer.ParseMacros(Item item) +66
       umbraco.presentation.templateControls.ItemRenderer.Init(Item item) +7
       umbraco.presentation.templateControls.Item.OnInit(EventArgs e) +92
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.4062; ASP.NET Version:2.0.50727.3601
    span.tracecontent b { color:white } span.tracecontent { background-color:white; color:black;font: 10pt verdana, arial; } span.tracecontent table { clear:left; font: 10pt verdana, arial; cellspacing:0; cellpadding:0; margin-bottom:25} span.tracecontent tr.subhead { background-color:#cccccc;} span.tracecontent th { padding:0,3,0,3 } span.tracecontent th.alt { background-color:black; color:white; padding:3,3,2,3; } span.tracecontent td { color: black; padding:0,3,0,3; text-align: left } span.tracecontent td.err { color: red; } span.tracecontent tr.alt { background-color:#eeeeee } span.tracecontent h1 { font: 24pt verdana, arial; margin:0,0,0,0} span.tracecontent h2 { font: 18pt verdana, arial; margin:0,0,0,0} span.tracecontent h3 { font: 12pt verdana, arial; margin:0,0,0,0} span.tracecontent th a { color:darkblue; font: 8pt verdana, arial; } span.tracecontent a { color:darkblue;text-decoration:none } span.tracecontent a:hover { color:darkblue;text-decoration:underline; } span.tracecontent div.outer { width:90%; margin:15,15,15,15} span.tracecontent table.viewmenu td { background-color:#006699; color:white; padding:0,5,0,5; } span.tracecontent table.viewmenu td.end { padding:0,0,0,0; } span.tracecontent table.viewmenu a {color:white; font: 8pt verdana, arial; } span.tracecontent table.viewmenu a:hover {color:white; font: 8pt verdana, arial; } span.tracecontent a.tinylink {color:darkblue; background-color:black; font: 8pt verdana, arial;text-decoration:underline;} span.tracecontent a.link {color:darkblue; text-decoration:underline;} span.tracecontent div.buffer {padding-top:7; padding-bottom:17;} span.tracecontent .small { font: 8pt verdana, arial } span.tracecontent table td { padding-right:20 } span.tracecontent table td.nopad { padding-right:5 }

    Request Details

    Session Id: hinwhd45bnci5e2oyp2rp345 Request Type: GET
    Time of Request: 24/11/2009 09:59:52 Status Code: 500
    Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)

    Trace Information

    Category Message From First(s) From Last(s)
    aspx.page Begin PreInit    
    umbracoInit handling request 2.63301620736714E-05 0.000026
    umbracoPage Pagedata loaded for CIPR North West PRide Awards (ID: 1083, Version: d866f43b-89a2-43b2-a022-8f7cbea3dda3) 0.0271084034423369 0.027082
    default.aspx Culture changed to en-US 0.0272703653676654 0.000162
    aspx.page End PreInit 0.337047376133 0.309777
    aspx.page Begin Init 0.337080201533994 0.000033
    item Start parsing 'browserTitle' 0.337188874563667 0.000109
    item Done parsing 'browserTitle' 0.337223934885579 0.000035
    umbracoMacro Macro loaded from cache (ID: 13, NewsTicker) 0.337254036476703 0.000030
    renderMacro Rendering started (macro: NewsTicker, type: 3, cacheRate: 0) 0.337270868224872 0.000017
    umbracoMacro Usercontrol added (/usercontrols/NewsTicker.ascx) 0.337283788861434 0.000013
    loadUserControl Usercontrol added with id 'NewsTicker_1' 0.337459299994832 0.000176
    umbracoMacro Macro loaded from cache (ID: 11, LeftSectionTopText) 0.337504906349829 0.000046
    renderMacro Rendering started (macro: LeftSectionTopText, type: 3, cacheRate: 0) 0.337520341272424 0.000015
    umbracoMacro Usercontrol added (/usercontrols/LeftSectionTopText.ascx) 0.337533192067707 0.000013
    loadUserControl Usercontrol added with id 'LeftSectionTopText_2' 0.33797158577417 0.000438
    umbracoMacro Macro loaded from cache (ID: 7, LeftSectionMenu) 0.337996100062997 0.000025
    renderMacro Rendering started (macro: LeftSectionMenu, type: 3, cacheRate: 0) 0.33801160482687 0.000016
    umbracoMacro Usercontrol added (/usercontrols/LeftSectionMenu.ascx) 0.338024804828547 0.000013
    loadUserControl Usercontrol added with id 'LeftSectionMenu_3' 0.338435192182247 0.000410
    umbracoMacro Macro loaded from cache (ID: 9, LeftSectionImageLink) 0.338460684248976 0.000025
    renderMacro Rendering started (macro: LeftSectionImageLink, type: 3, cacheRate: 0) 0.338475979489013 0.000015
    umbracoMacro Usercontrol added (/usercontrols/LeftSectionImageLink.ascx) 0.338488411236624 0.000012
    loadUserControl Usercontrol added with id 'LeftSectionImageLink_4' 0.338887973192124 0.000400
    umbracoMacro Macro loaded from cache (ID: 1, ImageFromAlias) 0.338912697004787 0.000025
    renderMacro Rendering started (macro: ImageFromAlias, type: 3, cacheRate: 0) 0.338927782720988 0.000015
    umbracoMacro Usercontrol added (/usercontrols/ImageFromMediaByAlias.ascx) 0.338941611294173 0.000014
    loadUserControl Usercontrol added with id 'ImageFromMediaByAlias_5' 0.339344106583379 0.000402
    macro.loadControlProperties Property added 'ImageAlias' with value 'newsArticleMainImage' 0.339486093902996 0.000142
    macro.loadControlProperties Property added 'DefaultImageNodeID' with value '1087' 0.339598608202998 0.000113
    item Start parsing 'newsArticleTitle' 0.339628151063892 0.000030
    item Done parsing 'newsArticleTitle' 0.339655528845146 0.000027
    item Start parsing 'newsArticleDate' 0.339676271704923 0.000021
    Unhandled Execution Error
    String was not recognized as a valid DateTime.
      at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
      at System.Convert.ToDateTime(String value)
      at umbraco.item.parseItem(IDictionary attributes)
      at umbraco.item..ctor(IDictionary elements, IDictionary attributes)
      at umbraco.presentation.templateControls.ItemRenderer.GetFieldContents(Item item)
      at umbraco.presentation.templateControls.ItemRenderer.ParseMacros(Item item)
      at umbraco.presentation.templateControls.ItemRenderer.Init(Item item)
      at umbraco.presentation.templateControls.Item.OnInit(EventArgs e)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    0.339905420940371 0.000229

    Control Tree

    Control UniqueID Type Render Size Bytes (including children) ViewState Size Bytes (excluding children) ControlState Size Bytes (excluding children)
    __Page ASP.default_aspx 0 0 0
        ctl00 ASP.masterpages_newsarticle_master 0 0 0
            ctl00$ctl00 ASP.masterpages_homepage_master 0 0 0
                ctl00$ctl00$ctl00 ASP.umbraco_masterpages_default_master 0 0 0
                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl04 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl05 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag ASP.usercontrols_headtag_ascx 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl01 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl00 umbraco.presentation.templateControls.Item 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl00$ctl00 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl02 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$uxStylesheetLinks System.Web.UI.WebControls.Literal 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl03 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$uxColourCodeStyles System.Web.UI.WebControls.Literal 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$HeadTag$ctl04 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl06 System.Web.UI.LiteralControl 0 0 0
                        aspnetForm System.Web.UI.HtmlControls.HtmlForm 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl07 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl00 umbraco.presentation.templateControls.Macro 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1 ASP.usercontrols_newsticker_ascx 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1$ctl00 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1$MyTickerCount System.Web.UI.WebControls.Literal 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1$ctl01 System.Web.UI.LiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1$MyTicker System.Web.UI.WebControls.Literal 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$NewsTicker_1$ctl02 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl08 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header ASP.usercontrols_headersection_ascx 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$ctl00 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$Link1 System.Web.UI.HtmlControls.HtmlAnchor 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$ctl01 System.Web.UI.LiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$uxLogo System.Web.UI.WebControls.Image 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$ctl02 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$header$ctl03 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl09 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu ASP.usercontrols_menusection_ascx 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$ctl00 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1 Telerik.WebControls.RadMenu 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m0 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m1 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m2 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m3 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m4 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m5 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m6 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m7 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m8 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m9 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m10 Telerik.WebControls.RadMenuItem 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$RadMenu1$m11 Telerik.WebControls.RadMenuItem 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$ctl01 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$uxMenuUnderlineRule System.Web.UI.WebControls.Image 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menu$ctl02 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl10 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl01 umbraco.presentation.templateControls.Macro 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionTopText_2 ASP.usercontrols_leftsectiontoptext_ascx 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionTopText_2$uxLeftColTop System.Web.UI.WebControls.Panel 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionTopText_2$ctl00 System.Web.UI.LiteralControl 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionTopText_2$uxleftContentText System.Web.UI.WebControls.Label 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionTopText_2$ctl01 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl11 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl02 umbraco.presentation.templateControls.Macro 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionMenu_3 ASP.usercontrols_leftsectionmenu_ascx 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionMenu_3$uxLeftColTopMenu System.Web.UI.WebControls.Panel 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionMenu_3$ctl00 System.Web.UI.LiteralControl 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionMenu_3$uxLeftMenuRepeater System.Web.UI.WebControls.Repeater 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionMenu_3$ctl01 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl12 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxPostIt System.Web.UI.WebControls.Panel 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl13 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl03 umbraco.presentation.templateControls.Macro 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionImageLink_4 ASP.usercontrols_leftsectionimagelink_ascx 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionImageLink_4$uxLink System.Web.UI.WebControls.HyperLink 0 0 0
                                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LeftSectionImageLink_4$uxImage System.Web.UI.WebControls.Image 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl14 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl15 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl05 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl00 umbraco.presentation.templateControls.Macro 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5 ASP.usercontrols_imagefrommediabyalias_ascx 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5$uxTopImage System.Web.UI.WebControls.Panel 0 0 0
                                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5$ctl00 System.Web.UI.LiteralControl 0 0 0
                                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5$uxImage System.Web.UI.WebControls.Image 0 0 0
                                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5$ctl01 System.Web.UI.LiteralControl 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ImageFromMediaByAlias_5$ctl02 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl06 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl01 umbraco.presentation.templateControls.Item 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl01$ctl00 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl07 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl02 umbraco.presentation.templateControls.Item 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl08 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl03 umbraco.presentation.templateControls.Item 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl09 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl04 umbraco.presentation.templateControls.Macro 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxCenterColumn$ctl10 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl16 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$uxRightColumn System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl17 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer ASP.usercontrols_footersection_ascx 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl02 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$Facebook System.Web.UI.HtmlControls.HtmlImage 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl03 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$LinkedIn System.Web.UI.HtmlControls.HtmlImage 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl04 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$OurNewsLink System.Web.UI.HtmlControls.HtmlAnchor 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl05 System.Web.UI.LiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$deWinterNews System.Web.UI.HtmlControls.HtmlImage 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl06 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl07 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$uxFooterContacts System.Web.UI.WebControls.Literal 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl08 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl00 System.Web.UI.HtmlControls.HtmlImage 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl09 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$uxBottomRule System.Web.UI.WebControls.Image 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl10 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$SitemapLink System.Web.UI.HtmlControls.HtmlAnchor 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl11 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl12 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$TermsLink System.Web.UI.HtmlControls.HtmlAnchor 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl13 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl14 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$uxYear System.Web.UI.WebControls.Label 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl15 System.Web.UI.ResourceBasedLiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl01 System.Web.UI.HtmlControls.HtmlImage 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$footer$ctl16 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl18 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl19 System.Web.UI.LiteralControl 0 0 0

    Session State

    Session Key Type Value
    windowHeight System.String 754
    windowWidth System.String 1419

    Application State

    Application Key Type Value
    umbracoUrl System.String dewinterumbraco:80/umbraco
    umbracoNeedConfiguration System.Boolean False

    Request Cookies Collection

    Name Value Size
    UserContext 9f355e45-3533-4384-b00c-59cd7f547888 48
    updateCheck 1 13
    ASP.NET_SessionId hinwhd45bnci5e2oyp2rp345 42

    Response Cookies Collection

    Name Value Size

    Headers Collection

    Name Value
    Connection Keep-Alive
    Accept */*
    Accept-Encoding gzip, deflate
    Accept-Language en-gb
    Cookie UserContext=9f355e45-3533-4384-b00c-59cd7f547888; updateCheck=1; ASP.NET_SessionId=hinwhd45bnci5e2oyp2rp345
    Host dewinterumbraco
    User-Agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; MDDS; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)
    UA-CPU x86

    Response Headers Collection

    Name Value
    X-AspNet-Version 2.0.50727
    Cache-Control private
    Content-Type text/html

    Form Collection

    Name Value

    Querystring Collection

    Name Value
    umbVersion d866f43b-89a2-43b2-a022-8f7cbea3dda3

    Server Variables

    Name Value
    ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-gb HTTP_COOKIE:UserContext=9f355e45-3533-4384-b00c-59cd7f547888; updateCheck=1; ASP.NET_SessionId=hinwhd45bnci5e2oyp2rp345 HTTP_HOST:dewinterumbraco HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; MDDS; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2) HTTP_UA_CPU:x86
    ALL_RAW Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-gb Cookie: UserContext=9f355e45-3533-4384-b00c-59cd7f547888; updateCheck=1; ASP.NET_SessionId=hinwhd45bnci5e2oyp2rp345 Host: dewinterumbraco User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; MDDS; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2) UA-CPU: x86
    APPL_MD_PATH /LM/W3SVC/10/ROOT
    APPL_PHYSICAL_PATH C:\inetpub\wwwroot\DeWinterUmbraco\
    AUTH_TYPE  
    AUTH_USER  
    AUTH_PASSWORD  
    LOGON_USER  
    REMOTE_USER  
    CERT_COOKIE  
    CERT_FLAGS  
    CERT_ISSUER  
    CERT_KEYSIZE  
    CERT_SECRETKEYSIZE  
    CERT_SERIALNUMBER  
    CERT_SERVER_ISSUER  
    CERT_SERVER_SUBJECT  
    CERT_SUBJECT  
    CONTENT_LENGTH 0
    CONTENT_TYPE  
    GATEWAY_INTERFACE CGI/1.1
    HTTPS off
    HTTPS_KEYSIZE  
    HTTPS_SECRETKEYSIZE  
    HTTPS_SERVER_ISSUER  
    HTTPS_SERVER_SUBJECT  
    INSTANCE_ID 10
    INSTANCE_META_PATH /LM/W3SVC/10
    LOCAL_ADDR 127.0.0.1
    PATH_INFO /default.aspx
    PATH_TRANSLATED C:\inetpub\wwwroot\DeWinterUmbraco\default.aspx
    QUERY_STRING umbVersion=d866f43b-89a2-43b2-a022-8f7cbea3dda3
    REMOTE_ADDR 127.0.0.1
    REMOTE_HOST 127.0.0.1
    REMOTE_PORT 49313
    REQUEST_METHOD GET
    SCRIPT_NAME /default.aspx
    SERVER_NAME dewinterumbraco
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/7.0
    URL /default.aspx
    HTTP_CONNECTION Keep-Alive
    HTTP_ACCEPT */*
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTP_ACCEPT_LANGUAGE en-gb
    HTTP_COOKIE UserContext=9f355e45-3533-4384-b00c-59cd7f547888; updateCheck=1; ASP.NET_SessionId=hinwhd45bnci5e2oyp2rp345
    HTTP_HOST dewinterumbraco
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; MDDS; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)
    HTTP_UA_CPU x86


    Microsoft .NET Framework Version:2.0.50727.4062; ASP.NET Version:2.0.50727.3601

     

     

  • dandrayne 1138 posts 2262 karma points
    Nov 24, 2009 @ 12:32
    dandrayne
    0

    Do you still get the error after you publish, then previewing?

    Dan

  • Jim 5 posts 25 karma points
    Nov 24, 2009 @ 13:15
    Jim
    0

    Thanks for the reply.

    Yes, I still get the error after publishing, then clicking preview.

    I also tried a republish entire site and still get the error, when clicking preview.

  • Arjan H. 226 posts 463 karma points c-trib
    Aug 02, 2010 @ 22:50
    Arjan H.
    0

    I'm also getting a server error in the preview when using the formatAsDate="true" attribute:

    <umbraco:Item field="date" formatAsDate="true" runat="server"></umbraco:Item>

    I worked around this by using inline XSLT:

    <umbraco:Item field="date" xslt="umbraco.library:FormatDateTime({0},'dddd dd MMMM yyyy')" runat="server"></umbraco:Item>

    The only downside to this solution is that the preview doesn't process the inline XSLT properly, so the date isn't being displayed in the preview. It's not a huge issue for me, but if someone knows how to fix this (without a custom .net method), please let me know!

Please Sign in or register to post replies

Write your reply to:

Draft