Copied to clipboard

Flag this post as spam?

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


  • Jacob Buus 18 posts 38 karma points
    Jan 17, 2013 @ 22:03
    Jacob Buus
    0

    Getting startIndex build error in visual studio

    I have a Visual Studio solution setup with the Umbraco website as one of the projects in it. 

    Ever once an a while when I compile the solution I get a compile error: 

    Error 2 startIndex cannot be larger than length of string.  Parameter name: startIndex

    There's no info about which file fails or where it fails. An it doesn't fail on every build - just once and a while. If I restart Visual Studio then everything runs great. 
    Have anyone else experienced this problem - and maybe have a solution?
    Also - it takes a while to compile the solution with the Umbraco website in it - is there a way to speed this up a bit? 
    Many thanks :)

  • Bill 43 posts 65 karma points
    Dec 11, 2013 @ 15:37
    Bill
    0

    Nearly a year late but I've just had this issue and worked it out

    In your Umbraco project in Visual Studio, open the Property Pages -> Build -> Before running startup page: Set to 'Build page'. not 'Build website'

     

    Voila.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies