[FileNotFoundException: Could not load file or assembly ‘JetBrains.Annotations, Version=22.214.171.124, 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 126.96.36.199
The above is for version 188.8.131.52, for more info regarding downloading old versions of nuget packages, see this link:
Read more here: Error when starting ASP.NET website – Language Agents / .NET Agent – New Relic Community Forum
You can deploy a web project by using one-click publish or a deployment package:
- One-click publish refers to a feature in Visual Studio that lets you deploy directly from the Visual Studio IDE by clicking a button. Visual Studio connects to a destination server, copies project files to it, and performs other deployment tasks.
- A web deployment package is a .zip file that contains all the information needed for deployment. You create the package from the command line or in Visual Studio, and you install it on the destination server by using the command line or IIS Manager.
Which of these methods you use depends on your scenario and your personal preference. One-click publish is typically the best choice for smaller organizations that do not implement a continuous integration (CI) development process. You would typically deploy to a hosting company where your application runs either in a shared hosting environment or on a dedicated server. (In a shared hosting environment, a single server is used to host sites for multiple hosting company clients.)
Source: Web Deployment Overview for Visual Studio and ASP.NET