按照这位大神的帖子步骤http://club.kisdee.com/home.php? ... 7&do=blog&id=118403
服务器端测试都OK,自定义组件能正常运行。
客户端下载后能正常解压dll,但是打开报错,提示如下:
KDCustomControlBase.LoadConfig;未能加载文件或程序集“file:///C:\Program Files (x86)\Kingdee\K3Cloud\DeskClient\K3CloudClient\controlplugins\WpfControlLibrary1.dll”或它的某一个依赖项。试图加载格式不正确的程序。
在 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
在 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
在 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
在 System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
在 System.Reflection.Assembly.LoadFrom(String assemblyFile)
在 Kingdee.BOS.Client.Core.KDCustomControlConfigExtension.CreateCustControl[T](KDCustomControlConfig custcfg, Type defType, Action`2 OnError)
不知道为什么出在哪里了
本人qq:24582876
推荐阅读