通过这位大神的帖子一步步操作来的 http://club.kisdee.com/home.php? ... 7&do=blog&id=118403
服务器端自定义控件可以正确运行,
客户端能正确下载,也能正确解压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
推荐阅读