Hello! I'm new to Umbraco. When a project is ran, we encountered an error: "Exception Details: System.InvalidOperationException: No factory has been set."
Did you replace Global.asax?
It happened to me when I copied my Global.asax from previous Umbraco 7 didn't realise the approach to invoking code on application start has been completely changed.
Check this link from umbraco docs here
Thank you! Yes. After I made global.asax available again in the project. That specific error went away. Now another issue came in but is now superficial and clearer in detail.
Hi James,
Even am getting the same error post installing the necessary packages.
However i got a pop up stating do you want to replace Global.asax i said no so that i will retain mine as it is.
Still am getting this error . Please let me know on this if you have any idea/observations while you were fixing this issue.
No factory has been set.
Hello! I'm new to Umbraco. When a project is ran, we encountered an error: "Exception Details: System.InvalidOperationException: No factory has been set."
Stack Trace:
[InvalidOperationException: No factory has been set.] Umbraco.Core.Composing.Current.get_Factory() +86 Umbraco.Web.Composing.ModuleInjector`1.Init(HttpApplication context) +325 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +584 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
[HttpException (0x80004005): No factory has been set.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
Any clue how this can be resolved please? Any help would be appreciated.
Did you replace Global.asax? It happened to me when I copied my Global.asax from previous Umbraco 7 didn't realise the approach to invoking code on application start has been completely changed. Check this link from umbraco docs here
Thank you! Yes. After I made global.asax available again in the project. That specific error went away. Now another issue came in but is now superficial and clearer in detail.
Hi James, Even am getting the same error post installing the necessary packages. However i got a pop up stating do you want to replace Global.asax i said no so that i will retain mine as it is. Still am getting this error . Please let me know on this if you have any idea/observations while you were fixing this issue.
It will be great helpful if any one can help me out in resolving this issue. Am still facing same issue.
I just found this post having got the same error and fixed it by checking:
Hopefully this helps someone.
I can confirm wrong directory and file permissions can be the cause of this error.
In my situation, I wanted to create a staging environment by:
This gave an error:
Setting correct file permissions to my staging folder resolved this.
For me, it turned out I had an old setting left in umbracoSettings.config:
I removed it and I got rid of the error. "No factory has been set." is a cryptic error message but I did find the cause after checking the logs:
So check if you have this setting. And if not, the logs might give you direction to other settings or issues.
In my case I had the old App_Data folder in the IIS directory. The error was gone after deleting the folder.
is working on a reply...