Код: Выделить всё
System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'SQLitePCLRaw.core, Version=2.0.4.976, Culture=neutral, PublicKeyToken=1488e028ca7ab535' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at SQLite.SQLiteConnection..cctor()
Я могу использовать эти же пакеты в настольных приложениях (Winforms и консоль .NET Framework).
Я просмотрел все файлы .dll в \bin папку приложения IIS и нигде не удалось найти 2.0.4, поэтому я не знаю, какой манифест он находит.
В глобальном кэше nuget ЕСТЬ версия 2.0.4 SQLitePCLRaw.core вместе с версией 2.0.7.

Вот мой проект файл:
Код: Выделить всё
Local
8.0.50727
2.0
{2CF2EE45-849A-47F9-BD72-3ADA2C1BAFCE}
SAK
SAK
SAK
Debug
AnyCPU
XamarinBOs
JScript
Grid
IE50
false
Library
XamarinBOs
OnBuildSuccess
SAK
false
v4.6.2
2.0
publish\
true
Disk
false
Foreground
7
Days
false
false
true
0
1.0.0.%2a
false
false
true
bin\Debug\
false
285212672
false
DEBUG;TRACE
true
4096
false
false
false
false
true
4
full
prompt
AllRules.ruleset
false
bin\Release\
false
285212672
false
TRACE
true
4096
false
true
false
false
false
4
full
prompt
AllRules.ruleset
false
true
bin\x64\Debug\
DEBUG;TRACE
285212672
true
4096
full
x64
prompt
AllRules.ruleset
true
bin\x64\Release\
TRACE
285212672
true
4096
full
x64
prompt
AllRules.ruleset
..\packages\Microsoft.Data.Sqlite.Core.6.0.2\lib\netstandard2.0\Microsoft.Data.Sqlite.dll
..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.0.7\lib\net461\SQLitePCLRaw.batteries_v2.dll
..\packages\SQLitePCLRaw.core.2.0.7\lib\netstandard2.0\SQLitePCLRaw.core.dll
..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.0.7\lib\net461\SQLitePCLRaw.nativelibrary.dll
..\packages\SQLitePCLRaw.provider.dynamic_cdecl.2.0.7\lib\netstandard2.0\SQLitePCLRaw.provider.dynamic_cdecl.dll
..\packages\SQLitePCLRaw.provider.e_sqlite3.2.0.7\lib\netstandard2.0\SQLitePCLRaw.provider.e_sqlite3.dll
System
..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
System.Data
..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
System.XML
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
False
.NET Framework 3.5 SP1 Client Profile
false
False
.NET Framework 3.5 SP1
true
False
Windows Installer 3.1
true
{3992f70f-4c99-47af-a4e4-c17574bda7e7}
DCSDTOs
{c3bf9001-6a7b-407f-a689-2b347706976c}
Factor.WindowsEventLogWriter
{749f9e29-03ad-4ed8-894c-2237eaa594d0}
GeneralDTOs
{10aa46ad-6c8a-4042-901d-ed87262b54b7}
Utils
{C069F763-4C38-407D-89F3-B3601D91E451}
XamarinDTO
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
Код: Выделить всё
[img]https://i.sstatic .net/2vFKJ.png[/img]

Я попробовал это:
Не удалось загрузить файл или сборку SQLitePCLRaw.core
И я не смог выполнить большую часть этого:
https://github.com/ericsink/SQLitePCL.raw/issues /343[5]
Я также удалил все временные файлы ASP.NET.
Подробнее здесь: https://stackoverflow.com/questions/711 ... ite-in-iis
Мобильная версия