Failure in loading assembly

In the application event log I found several errors that were pointing to assemblies that I wasn’t using anymore. The error looks like the message below: Error: Failure in loading assembly: Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=Token.

The application was trying to load an assembly that I wasn’t in the GAC or in the BIN folder. This causes the error so I searched trough the complete solution for references to the specified assembly but couldn’t find any. After searching I opened the web.config file of the web application and the one from central administration and saw that there were safecontrols registered to assemblies that I wasn’t using anymore.

<SafeControl Assembly="Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=Token" Namespace="Namespace" TypeName="*" Safe="True" />

By deleting these safecontrol the problem was solved.

Share Button

Leave a Reply

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


8 + four =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>