Problem with version 2.6

Topics: Business Logic Layer
May 16, 2012 at 10:55 AM

Hi,

when i try to execute compiled source version (without any change) the system return this msg:

System.FormatException was unhandled by user code

 Message=String was not recognized as valid DateTime value. Detected unknown wordstarting at index 3

in C:\Setup\Source\BlogEngine\BlogEngine.Core\Packaging\PackageRepository.cs:riga 72

the value is "12 ott 2011"

i using win xp sp3 international settings for italian lang and VWD 2010. Is this the problem ? The international settings ?

thx.

Francesco

Coordinator
May 16, 2012 at 3:56 PM

Are you using 2.6 RC or final (2.6.0.5) release? This is an issue some people reported in RC and I hoped was fixed in final.

May 17, 2012 at 1:32 PM

2.6.0.5 : I get now this error when I open a Dashboard.
2.6.0.4 that uses culture instead of CultureInfo.InvariantCulture works fine.

May 29, 2012 at 10:39 PM

the same error even with version 2.6.0.7 and 2.6.0.9

 

Url : http://www.fiorentina.info/admin/default.cshtml

Raw Url : /admin/default.cshtml

Message : Generata eccezione di tipo 'System.Web.HttpUnhandledException'.

Source : System.Web.WebPages

StackTrace : in System.Web.WebPages.WebPageHttpHandler.HandleError(Exception e)

in System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context)

in System.Web.WebPages.WebPageHttpHandler.<>c__DisplayClass1.b__0()

in System.Web.WebPages.SecurityUtil.b__0(Action f)

in System.Web.WebPages.SecurityUtil.ProcessInApplicationTrust(Action action)

in System.Web.WebPages.WebPageHttpHandler.ProcessRequest(HttpContext context)

in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

in System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

TargetSite : Boolean HandleError(System.Exception)

Message : Stringa non riconosciuta come valore DateTime valido.

Source : mscorlib

StackTrace : in System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

in System.Convert.ToDateTime(String value, IFormatProvider provider)

in BlogEngine.Core.Packaging.PackageRepository.b__6(JsonPackage p) in C:\Setup\be26007\BlogEngine\BlogEngine.Core\Packaging\PackageRepository.cs:riga 63

in System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)

in System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)

in System.Linq.OrderedEnumerable`1.d__0.MoveNext()

in System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

in System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

in BlogEngine.Core.Packaging.PackageRepository.FromGallery(String pkgType, Int32 page, OrderType sortOrder, String searchVal) in C:\Setup\be26007\BlogEngine\BlogEngine.Core\Packaging\PackageRepository.cs:riga 63

in ASP.Helpers.DashboardHelper.b__16(TextWriter __razor_helper_writer) in d:\inetpub\webs\fiorentinainfo\App_Code\Helpers\DashboardHelper.cshtml:riga 129

in System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)

in System.Web.WebPages.WebPageBase.Write(HelperResult result)

in ASP._Page_admin_default_cshtml.Execute() in d:\inetpub\webs\fiorentinainfo\admin\default.cshtml:riga 58

in System.Web.WebPages.WebPageBase.ExecutePageHierarchy()

in System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)

in System.Web.WebPages.WebPage.ExecutePageHierarchy()

in System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)

in System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context)

TargetSite : System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)

 

Thx

Francesco