+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / I got error: assembly's manifest definition mismatch

I got error: assembly's manifest definition mismatch

6 posts, 0 answered
  1. Salman
    Salman avatar
    18 posts
    Registered:
    07 Nov 2007
    28 Feb 2008
    Link to this post
    Hi,
    I tried to open a page that was working fine 2 hours ago and got this exception:

     

    Server Error in '/' Application.

    Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    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.FileLoadException: Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Copy of Nolics.Engine.v4.2' could not be loaded.

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
       System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
       System.Reflection.Assembly.Load(String assemblyString) +25
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
    
    [ConfigurationErrorsException: Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3596761
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
       System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
       System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
       System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
       System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448
    
    [HttpException (0x80004005): Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +521
    
    [HttpException (0x80004005): Could not load file or assembly 'Copy of Nolics.Engine.v4.2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3540923
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +275
    

    Since, our website would be accessed by thousands of users daily so, we would like to ensure about such issues. Please suggest.

    Best Regards,
    Salman Sarfraz
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Feb 2008
    Link to this post
    Hi Salman,

    You may get this error if you modify/change the assemblies in your project's bin directory. Besides, we don't have an assembly named "Copy of Nolics.Engine.v4.2". We ship Sitefinity with "Nolics.Engine.v4.2". Please check your references to this assembly and check that the referenced DLL exists.

    I hope this makes sense.
     
    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Salman
    Salman avatar
    18 posts
    Registered:
    07 Nov 2007
    29 Feb 2008
    Link to this post

    Dear Georgi,
    Thanks for your kind reply. We have already fixed it by removing that Copy of Nolics dll. However, we are caught up with a NEW PROBLEM which is quite bigger.

    We have created many page groups to maintain pages in a proper hierarchy. Before we encountered above exception, one of our main Page Group suddenly disappeared. We thought, it's just a fluke and when the exception got fixed, still that page group did not appear. We checked database and found that whole page group with 36 pages in it is no longer there any more.

    None of us deleted that important page group. We even checked it it got moved to some other page group but in vain. Please throw some light on it. It's a great pain for us to build those pages again. Moreover, you offer page history but if a page or page group is not there itself, version history can't be used.

    I am quite concerned if such thing ever happens again in future. So, can you please explain this situation to me?

    Best Regards,
    Salman Sarfraz

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Mar 2008
    Link to this post
    Hi Salman,

    We are sorry to hear you are having this problem.
    So far, nobody has reported anything similar.
    If you cannot find the pages in the database, there's no way to get them back. In your previous post you mentioned something about Nolics and DLLs that are used for database operations, and the problem could have been somewhere there.
    We would like you to know that we'll invest as much time as needed to understand what exactly has caused this issue. However, we'll need your cooperation. Could you please provide some more information so that we could reproduce the issue here and track any problems that might be causing such behaviour?

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Salman
    Salman avatar
    18 posts
    Registered:
    07 Nov 2007
    04 Mar 2008
    Link to this post
    Dear Georgi,

    Let me explain the whole scenario as it may help:

    1. We got two teams. One team was working consisitently on Sitefinity to create and edit pages. At the same time, somehow Nolics dll got copied by our webmaster but it showed no error at that time and site was working fine. Before we faced above exception (that was caused due to that copied assembly), the team that was working on creating and editing Sitefinity pages stopped seeing one of the page groups in Sitefinity Pages sitemap. After almost half an hour of that, we started facing that exception. However, after that copy of Nolics dll was deleted, exception got removed but pages were still not there. Since, Sitefinity uses Nolics for data modeling purposes, there can be chances that something abnormal might have happened. Well, i am not sure. Just guessing. Right now, we are taking daily backups to reduce the effect of such problem in future. But, you may check it out.

    I hope, above information would help.

    Take care and have a good time.

    Best Regards,
    Salman Sarfraz

  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Mar 2008
    Link to this post
    Hello Salman,

    Thank you for providing us with additional information about the issue. We will investigate it and contact you.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
6 posts, 0 answered