Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Tommy Albinsson 121 posts 254 karma points
    Mar 12, 2013 @ 14:00
    Tommy Albinsson
    0

    You must initialize Current before trying to read it.

    Hi,

    Upgrading to umbraco 6 went ok, but when trying to install uCommerce v3 I got this error i mid install.

     

    Current has not been initialized on Umbraco.Web.Routing.RoutesCacheResolver. You must initialize Current before trying to read it.

     

    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.InvalidOperationException: Current has not been initialized on Umbraco.Web.Routing.RoutesCacheResolver. You must initialize Current before trying to read it.

    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: 

     

    [InvalidOperationException: Current has not been initialized on Umbraco.Web.Routing.RoutesCacheResolver. You must initialize Current before trying to read it.]

       Umbraco.Core.ObjectResolution.ResolverBase`1.get_Current() +249

       Umbraco.Web.UmbracoModule.BeginRequest(HttpContextBase httpContext) +260

       Umbraco.Web.UmbracoModule.<Init>b__6(Object sender, EventArgs e) +132

       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136

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

     

     

    Now i can't even start umbraco. When trying to start umbraco I get a ucommerce exception at first, and if I hit F5 I am back to to error above again. Any suggestions? (Yes the global.asax is in the web root) :)

    //Tommy

     

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Mar 15, 2013 @ 15:39
    David Brendel
    0

    I had the same error a few times when starting a test environment directly from VS. In fact without uCommerce installed.

    The only thing i've done was to restart the site in VS. Than this error was gone.

    Sometimes my VS has deleted some DLL from the bin folder and i readded them.

  • Petr 1 post 21 karma points
    Mar 18, 2013 @ 19:37
    Petr
    0

    I found the same problem when tried to setup Umbraco 6 MVC project in Visual Studio. I have realized that the problem was beetween keyboard and chair - I used this articleas a guide on hot to setup the project and there was following phrase there:

    Note that you may optionally wish to remove the App_Start directory and Global.asax.cs

    I was not very carefull and deleted not only Global.asax.cs but Global.asax too and it was the source of problem.

    So, please check if Global.asax file which came from Umbraco package is presented in your project.

  • Tommy Albinsson 121 posts 254 karma points
    Mar 19, 2013 @ 12:28
    Tommy Albinsson
    100

    Ok, good to know. 

    I coulden't really understand why this happend, but after sorting out some uCommerce dll issues the error went away. So I suspect it had something to do with the assemlbies beeing in the wrong version.

  • Rahul Kumar Singh 2 posts 22 karma points
    Jun 13, 2013 @ 16:15
    Rahul Kumar Singh
    0

    i am getting same error, how to remove this. And if some dlls needsto be added, then which are they.

  • CASTELLI 23 posts 76 karma points
    Sep 10, 2013 @ 10:51
    CASTELLI
    0

    Hi,

    I had the same issue copying a working version of Umbraco 6.1.1 (and database) to another machine.

    I solved it by setting the permissions to the whole root folder and subdirectories for ASPNET and IUSR and network services in that order.
    I cannot tell which one made it worked by it made the error disappear and the ran fine.

    Hope it helps

Please Sign in or register to post replies

Write your reply to:

Draft