dibaozhongwei 发表于 2023-1-22 00:00:59

这个错误是怎么回事

因为Imager控件无法加载图片,我把设计器升级到 了最新版本,然后就这样 了,vs20192023/01/21 23:51:51 Started
2023/01/21 23:51:51 Start
2023/01/21 23:51:58 172.24.8.252:47068
2023/01/21 23:51:58 {"deviceOS":"Android","deviceOSVersion":"10","deviceModel":"SPN-AL00","screenSize":{"width":720,"height":1406},"density":2.25,"version":"6.3.1","coreVersion":"6.3.1","autoBuild":false,"isCompany":true,"extraInfo":{"package_name":"com.smobiler.app","display_name":"Smobiler","plugin_msg":null,"lowMemory":false,"languages":["zh-Hans-CN"]}}
2023/01/21 23:51:58 System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.IO.FileLoadException: 未能加载文件或程序集“Smobiler.Core.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=276522cd3fa3b955”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
   在 SmobilerApplication.SmobilerForm_Main.InitializeComponent()
   在 SmobilerApplication.SmobilerForm_Main..ctor() 位置 C:\Users\xxk\Desktop\AccountBook\SmobilerApplication1\SmobilerApplication\SmobilerForm1.cs:行号 33
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   在 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   在 System.Activator.CreateInstance(Type type, Boolean nonPublic)
   在 Smobiler.Core.MobileClient.(String )
2023/01/21 23:51:58 Stop-DUMP-True--

dibaozhongwei 发表于 2023-1-22 00:12:20

这个解决了,可能是framwork框架的问题,改回4.6.1可以了
页: [1]
查看完整版本: 这个错误是怎么回事