Error when starting EPiServer 7.5+ site on server environments – Could not load file or assembly ‘JetBrains.Annotations, Version=

[FileNotFoundException: Could not load file or assembly ‘JetBrains.Annotations, Version=8.0.5.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325’ or one of its dependencies. The system cannot find the file specified.] EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +1508 EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +84 EPiServer.Global..ctor() +91 ASP.global_asax..ctor() +9

The workaround is to include the JetBrains.Annotations.dll in the bin folder of the application. 

Use Nuget package manager console to install the exact version missing. Select the Web project as the default project (to install into that project) in Package Manager Console and enter this command:

install-package JetBrains.Annotations -version 9.1.1.0

The above is for version 9.1.1.0, for more info regarding downloading old versions of nuget packages, see this link:
http://stackoverflow.com/questions/5628689/download-old-version-of-package-with-nuget

Read more here: Error when starting ASP.NET website – Language Agents / .NET Agent – New Relic Community Forum

Leave a Reply

Your email address will not be published. Required fields are marked *