Saturday, June 2, 2018

Sitecore - errors occurred while attempting to load the app

When attempting to load a Sitecore 9 instance the following error would show:
The following errors occurred while attempting to load the app.
- No assembly found containing an OwinStartupAttribute.
- The discovered startup type 'Sitecore.Owin.Startup, Sitecore.Owin, Version=, Culture=neutral, PublicKeyToken=null' conflicts with the type 'SolrNet.Startup, SolrNet, Version=, Culture=neutral, PublicKeyToken=null'. Remove or rename one of the types, or reference the desired type directly.
To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
Sitecore startup error with OWN and SOLR
This was caused by a rogue web project deploying an empty web.config and overwriting the Sitecore default. By replacing the web.config file with the correct version, the error stopped occurring.

No comments:

Post a Comment