Server Error in '/' Application. Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find
When I try to run my site in version 5.1, I'm getting this error:
Server Error in '/' Application.
Could not load file or assembly 'Microsoft.Http,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.IO.FileNotFoundException:
Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be
helpful to determine why the assembly 'Microsoft.Http, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_ce7c9bb665f542e7998c0d172e70ebd6.Initialize(String providerName, NameValueCollection config, Type managerType) +197
Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1250
Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +296
Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +123
Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +12
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance() +103
Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +80
Telerik.Sitefinity.Services.SystemManager.Initialize() +134
Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +621
Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +281
Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
System.Web.HttpApplication.InitModulesCommon() +172
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Anybody's familiar with it? What could cause it? The site ran just fine until I installed new master page. But then I put the old (backed-up) ones back, but the system still sends this error.
Hi Inna,
We have answered you in the other forum thread that was opened.
Kind regards,
Victor Velev
the Telerik team
Do you have a link to the other thread?
Hi Ben,
Here it is - http://www.sitefinity.com/devnet/forums/sitefinity/general-discussions/569817.aspx
Kind regards,Thanks. So I accidentally hit "Rebuild" in Visual Studio instead of "Build". Had to move over the missing dll's from an empty project to fix the broken references.
[quote]Georgi said:Hi Ben,
Here it is - http://www.sitefinity.com/devnet/forums/sitefinity/general-discussions/569817.aspx
Kind regards,Hi Ruth,
Here is the working link:
http://www.sitefinity.com/developer-network/forums/general-discussions-/upgraded-to-5-1-getting-error-could-not-load-file-or-assembly-microsoft-http-version-1-0-0-0-culture-neutral-publickeytoken-31bf3856ad364e35-or-one-of
For the missing Microsoft.Http assembly you can go to the _EmptyProject->bin folder in your Sitefinity installation folder and copy over the dll to your project's bin folder. Build the solution and the issue should be resolved.