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.]
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) :)
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.
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.
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.
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
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.
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:
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.
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.
i am getting same error, how to remove this. And if some dlls needsto be added, then which are they.
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
is working on a reply...