'Could not load file or assembly' error

Posted by Community Admin on 03-Aug-2018 06:16

'Could not load file or assembly' error

All Replies

Posted by Community Admin on 13-Jul-2011 00:00

Hi

Our site has suddenly started to give below error on both front and back ends. What could be the problem and how can we fix it?

Thanks

Regards

 

Server Error in '/esprit' Application.

Could not load file or assembly 'Microsoft.WindowsAzure.Diagnostics, 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.WindowsAzure.Diagnostics, 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.WindowsAzure.Diagnostics, 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.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   Telerik.Sitefinity.Abstractions.EntLibFluentConfigExtensions.SitefinityLog(ILoggingConfigurationSendTo sendTo, String listenerName, String fileName, IFormatterBuilder formatBuilder) +0
   Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureLogging(ConfigurationSourceBuilder configBuilder) +613
   Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +343
   Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +219
   Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +114
   System.Web.HttpApplication.InitModulesCommon() +192
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1504
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +348
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +200
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +286


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Posted by Community Admin on 13-Jul-2011 00:00

Hi John,

This is the same problem we used to have with the Facebook and Twitter DLL's.  Telerik did not add the Microsot Azure DLL's as references to the SitefinityWebApp project.  Because of this, they have the annoying capacity of disappearing.  This happens most often to me when the Web application in development under Visual Studio and do a REBUILD.

To fix the problem, add the following DLL's as references to the SitefinityWebApp project, and make sure "Copy Local" is set to true...

Microsoft.WindowsAzure.Diagnostics
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.StorageClient

You'll probably have to go to your Sitefinity Installations _EmptyProject\Bin folder to get the dll's and put them back into your sites BIN folder.

I have attached a screenshot of DLL's referenced in the SitefinityWebApp Project from Visual Studio...

Greg

Posted by Community Admin on 22-Feb-2012 00:00

We managed to resolve this by copying all the DLLs from the bin of a local development version (successful upgrade) to the bin of the broken project on the production server. Next we added all the DLLs as references and re-built the solution.

Posted by Community Admin on 12-Nov-2012 00:00

I upgrade my development machine. I have Visual Studio 2012 and Windows Azure SDK for Windows 8. I am having the same error. I check my references to de Microsoft.WindowsAzure.Diagnostics and I have version 1.8.0.0 .
How can I resolve this issue.

Thank you.

This thread is closed