Copied to clipboard

Flag this post as spam?

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


  • Stefan 1 post 71 karma points
    Sep 01, 2018 @ 08:47
    Stefan
    0

    Error after installing Umazel Starter Kit

    Hi,

    I am still learning c#, .net, asp, mvc, razor & umbraco...

    I installed umbraco 7.12.1 using visual studio ce, iis express and sql express. After building and firing up the site in chrome I get the following error:

    Server Error in '/' Application. Specified cast is not valid. 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.InvalidCastException: Specified cast is not valid.

    Source Error:

    Line 14: @if (!currSection.HideTitle) Line 15: { Line 16: switch ((int)currSection.TitleSize) Line 17: { Line 18: case 1:

    Source File: c:\Users\xxx\source\repos\xxx\xxx\Views\Partials\SectionText.cshtml Line: 16

    I found out "currSection.TitleSize" is of type System.Decimal so it should cast to an int? But that is as far as my current debugging skills go at the moment :(

    I am going to search some more on google but I am hoping someone here might know the answer straight away :)

    Kind regards,

    Stefan

    Edit: I installed the starter kit with the highest reported working version: 7.5.14 and that works indeed. Does this mean I can't upgrade Umbraco to a higher version?

Please Sign in or register to post replies

Write your reply to:

Draft