Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm in the process of trying to do a quick Umbraco 7.15.4 to Umbraco 8.15.0 upgrade and I'm getting an error when running via Visual Studio after I've upgraded all of the packages and fixed references.
I've tried the suggestions mentioned below:
Make sure global.asax exist: https://our.umbraco.com/forum/using-umbraco-and-getting-started/97880-no-factory-has-been-set
Build + clean and then build again: https://our.umbraco.com/forum/using-umbraco-and-getting-started/102571-862-new-install-no-factory-has-been-set
Neither of those seemed to work.
<%@ Application Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
I'm wondering if maybe I have an error in my \App_Start\UmbracoEventsHandler.cs file after I migrated to the new format for components and composers?
public class ApplicationComposer : ComponentComposer<ApplicationComponent>, IUserComposer
public override void Compose(Composition composition)
// ApplicationStarting event in V7: add IContentFinders, register custom services and more here
public class ApplicationComponent : IComponent
public void Initialize()
// ApplicationStarted event in V7: add your events here
public void Terminate()
Server Error in '/' Application.
No factory has been set.
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: No factory has been set.
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.
[InvalidOperationException: No factory has been set.]
Umbraco.Core.Composing.Current.get_Factory() in D:\a\1\s\src\Umbraco.Core\Composing\Current.cs:55
Umbraco.Web.Composing.ModuleInjector`1.Init(HttpApplication context) in D:\a\1\s\src\Umbraco.Web\Composing\ModuleInjector.cs:50
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo handlers) +524
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo handlers, IntPtr appContext, HttpContext context) +176
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303
[HttpException (0x80004005): No factory has been set.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +680
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
Any help would be much appreciated! Thank you!
Generally the advice is that there isn't a direct upgrade path from V7 to V8 - but there is a migration path, where you get to keep your content.
Essentially, Start with a new Visual Studio project, install V8, and point it at the database to update the database structures and migrate the content. Then reimplement your site, in the V8 solution, start by moving in your views, etc, and updating all the syntax - rewrite any application starting hookins etc to use Composition and Components.... etc etc
It will be really hard to get a V7 solution to run if you just Nuget it to V8, and you need it to run to able to upgrade the database!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted