locked
SQLite failing to load - Timestamp of the IL assembly does not match record in .aux file RRS feed

  • Question

  • Hi all;

    My app references sqlite3.dll and upon loading (it's a Word COM based AddIn written in C#) I am getting the following error:

    WRN: Timestamp of the IL assembly does not match record in .aux file. Loading IL to compare signature.
    LOG: Start validating all the dependencies.
    LOG: [Level 1]Start validating native image dependency mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    Rejecting native image because native image dependency C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll had a different identity than expected

    Why am I getting this problem? The code runs fime under the VisualStudio debugger.

    I am using: NuGet: System.Data.SQLite.Core by SQLite Development Team version: 1.0.108 Description: The official SQLite database engine for both x86 and x64 along with the ADO.NET provider.

    thanks - dave

    Full log output from fuslogvw:

    *** Assembly Binder Log Entry  (9/19/2018 @ 2:14:31 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80004005. Unspecified error
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Data.SQLite, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/Windward Studios/Windward Report Designer/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = NULL
    Calling assembly : (Unknown).
    ===
    WRN: Timestamp of the IL assembly does not match record in .aux file. Loading IL to compare signature.
    LOG: Start validating all the dependencies.
    LOG: [Level 1]Start validating native image dependency mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    Rejecting native image because native image dependency C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll had a different identity than expected
    
    *** Assembly Binder Log Entry  (9/19/2018 @ 2:14:31 PM) ***
    
    The operation was successful.
    Bind result: hr = 0x1. Incorrect function.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE
    --- A detailed error log follows. 
    
    BEGIN : Native image bind.
      WRN: Timestamp of the IL assembly does not match record in .aux file. Loading IL to compare signature.
      LOG: Start validating all the dependencies.
      LOG: [Level 1]Start validating native image dependency mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
      Dependency name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    END   : Incorrect function. (Exception from HRESULT: 0x00000001 (S_FALSE))
    
    *** Assembly Binder Log Entry  (9/19/2018 @ 2:14:31 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80004005. Unspecified error
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Data.SQLite, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/Windward Studios/Windward Report Designer/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = NULL
    Calling assembly : (Unknown).
    ===
    WRN: Timestamp of the IL assembly does not match record in .aux file. Loading IL to compare signature.
    LOG: Start validating all the dependencies.
    LOG: [Level 1]Start validating native image dependency mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    Rejecting native image because native image dependency C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll had a different identity than expected
    WRN: No matching native image found.
    


    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Friday, September 21, 2018 1:47 AM

Answers

All replies

  • That's just a warning message and will not stop your program from running.

    What stops your program is the runtime is trying to load a wrong version of mscorlib.dll.

    So far the most common cause of the problem is that, you incorrectly copied mscorlib.dll to your application's folder. Try check this and see if this applies to your case.

    Monday, September 24, 2018 2:22 AM
    Answerer
  • We found it - we had an old sqlite3.dll. We replaced it with the 3 files NuGet pulls down now and it all works fine.

    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    • Marked as answer by DavidThielen Monday, September 24, 2018 7:08 PM
    Monday, September 24, 2018 7:08 PM