I'm trying to sort out getting web api routing registered without it crashing after a site restart.
I am running the latest version of Sitefinity 8.2.5904
The first boot everything works fine and then if I do something like disable/enable a module it redoes the Sitefinity bootstrapper code and my webapi routes crash with
"The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other initialization code."
Here is the code that I'm running:
We do all outs in Initalized... give it a try?
sender, EventArgs e)
//JsConfig.DateHandler = DateHandler.ISO8601;
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
//Telerik.Sitefinity.Configuration.Config.RegisterSection<RandomSiteControls.Configuration.SitefinitySteveConfig>(); //Random site controls (tabstrip\etc)
We are running in same issue with Sitefinity 9.0
When we register Web API routes on
if (e.CommandName == "Bootstrapped")
Sitefinity Loads infinitetly and never shows up home page
I'm having the same issue. Trying to run
causes the site loading to run infinitely. This is preventing me from using RouteAttributes in Web Api2 in my site.
I was able to solve my issue: