无法初始化AV Client, 相关错误信息如下:

WPF Windows Desktop Application,
Target Framework: 4.5.1
Target Platform: Any CPU

从nuget获取的SDK: http://www.nuget.org/packages/LeanCloud/1.0.1.1-pre1

AVClient.Inititlize(appID, appKey) throws run-time exception:

A first chance exception of type 'System.DllNotFoundException' occurred in SQLite.Net.Platform.Generic.dll
A first chance exception of type 'System.NotSupportedException' occurred in AVOSCloud.NetFx45.dll
A first chance exception of type 'System.NullReferenceException' occurred in AVOSCloud.NetFx45.dll
A first chance exception of type 'System.PlatformNotSupportedException' occurred in AVOSCloud.NetFx45.dll
A first chance exception of type 'System.DllNotFoundException' occurred in SQLite.Net.Platform.Generic.dll
A first chance exception of type 'System.NotSupportedException' occurred in AVOSCloud.NetFx45.dll
A first chance exception of type 'System.NullReferenceException' occurred in AVOSCloud.NetFx45.dll
A first chance exception of type 'System.PlatformNotSupportedException' occurred in AVOSCloud.NetFx45.dll

update: problem solved.

需要把sqlite3.dll拷贝至project的根目录下(即build输出目录)即把build action里的copy to output folder设置成copy always,默认是建立了一个sqlite的folder...

建议在文档里重点注明下。。。。。。。

谢谢您的意见。

您好!用.NET MVC 5,建个空项目(没有用户注册,也没有Code First,那些都是针对SQL Server的), 请问client initialize语句放在哪里啊?