Copied to clipboard

Flag this post as spam?

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


  • Laurence Gillian 597 posts 1214 karma points
    Jul 03, 2013 @ 13:15
    Laurence Gillian
    0

    Error on Application Startup (Visual Studio)

    Umbraco 6.1.2.
    SQL Server 2008 Express.

    When the application starts, if Visual Studio is debugging the process I get the following error:

    Locating source for 'c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs'. Checksum: MD5 {32 ec 77 5d 64 ec a8 64 3b ed ed fc ea eb 1d c9}
    The file 'c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs' does not exist.
    Looking in script documents for 'c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs'...
    Looking in the projects for 'c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs'.
    The file was not found in a project.
    Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
    Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
    Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
    Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
    The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs.
    The debugger could not locate the source file 'c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs'.

    And then every request throws the following error:

    Sequence contains no elements

       at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
       at InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.context_EndRequest(Object sender, EventArgs e) in c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\Modules\UrlTrackerModule.cs:line 80
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 03, 2013 @ 13:24
    Stefan Kip
    100

    UrlTrackerModule.cs line 80 is:

    rootNodeId = new Node(-1).ChildrenAsList.First().Id;
    

     Am I correct when I say you don't have any content nodes yet? (new Node(-1) == Content Root Node and it seems like it doesn't have any children at all)

  • Laurence Gillian 597 posts 1214 karma points
    Jul 04, 2013 @ 11:03
    Laurence Gillian
    0

    Ahha! That'll be it.

    Thank you for the reply :) and the update was a pleasant suprise, thanks! Lau

    GitHub Issue (fixed)

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 04, 2013 @ 11:10
    Stefan Kip
    0

    Meanwhile I've implemented another check so this exception won't occur anymore, will be included in the next version.

    Could you mark this topic as solved please? Thanks! :-)

  • 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