Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 导入时出错";Interop.zkemceper.dll“;到WCF服务_C#_Wcf_Visual Studio 2017_Zkteco - Fatal编程技术网

C# 导入时出错";Interop.zkemceper.dll“;到WCF服务

C# 导入时出错";Interop.zkemceper.dll“;到WCF服务,c#,wcf,visual-studio-2017,zkteco,C#,Wcf,Visual Studio 2017,Zkteco,我有“WCF服务应用程序”,即.NETFramework 4.6.1。我需要添加“Interop.zkemceeper.dll”作为参考。但当我将其作为WCF服务的参考添加时,当服务声明时,它在浏览器上显示以下错误 “/”应用程序中的服务器错误 无法加载文件或程序集“Interop.zkemkeeper”或其依赖项之一。试图加载格式不正确的程序。 描述:在执行当前web请求期间发生未经处理的异常。请查看堆栈跟踪,以了解有关错误及其在代码中起源的详细信息 异常详细信息:System.BadImag

我有“WCF服务应用程序”,即.NETFramework 4.6.1。我需要添加“Interop.zkemceeper.dll”作为参考。但当我将其作为WCF服务的参考添加时,当服务声明时,它在浏览器上显示以下错误

“/”应用程序中的服务器错误

无法加载文件或程序集“Interop.zkemkeeper”或其依赖项之一。试图加载格式不正确的程序。 描述:在执行当前web请求期间发生未经处理的异常。请查看堆栈跟踪,以了解有关错误及其在代码中起源的详细信息

异常详细信息:System.BadImageFormatException:无法加载文件或程序集“Interop.zkemkeeper”或其依赖项之一。试图加载格式不正确的程序

源错误:

在执行当前web请求期间生成了未经处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来标识

程序集加载跟踪:以下信息有助于确定无法加载程序集“Interop.zkemkeeper”的原因

==预绑定状态信息=== 日志:DisplayName=Interop.zkemceper (部分) 警告:为程序集提供了部分绑定信息: 警告:程序集名称:Interop.zkemkeeper |域ID:2 警告:仅提供部分程序集显示名称时,会发生部分绑定。 警告:这可能会导致活页夹加载不正确的组件。 警告:建议为程序集提供完全指定的文本标识, 警告:它由简单的名称、版本、区域性和公钥令牌组成。 警告:有关此问题的更多信息和常见解决方案,请参阅白皮书。 日志:Appbase=file:///C:/Users/Dushmantha/source/repos/VFTService/VFTService/ 日志:Initial PrivatePath=C:\Users\Dushmantha\source\repos\VFTService\VFTService\bin

正在调用程序集:(未知)。 日志:此绑定在默认加载上下文中启动。 日志:使用应用程序配置文件:C:\Users\Dushmantha\source\repos\VFTService\VFTService\web.config 日志:使用主机配置文件:C:\Users\Dushmantha\Documents\IISExpress\config\aspnet.config 日志:使用C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config中的计算机配置文件。 日志:此时未将策略应用于引用(私有、自定义、部分或基于位置的程序集绑定)。 日志:正在尝试下载新URLfile:///C:/Users/Dushmantha/AppData/Local/Temp/Temporary ASP.NET文件/vs/224635a0/d24b75c0/Interop.zkemceper.DLL。 日志:正在尝试下载新URLfile:///C:/Users/Dushmantha/AppData/Local/Temp/Temporary ASP.NET文件/vs/224635a0/d24b75c0/Interop.zkemceper/Interop.zkemceper.DLL。 日志:正在尝试下载新URLfile:///C:/Users/Dushmantha/source/repos/VFTService/VFTService/bin/Interop.zkemkeeper.DLL. 错误:未能完成程序集的设置(hr=0x8007000b)。探测已终止

堆栈跟踪:

[BadImageFormatException:无法加载文件或程序集'Interop.zkemkeeper'或其依赖项之一。试图加载格式不正确的程序。] System.Reflection.RuntimeAssembly.\u nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssembly位置提示、StackCrawlMark和stackMark、IntPtr pPrivHostBinder、Boolean throwOnFileNotFound、Boolean For Inspection、Boolean suppressSecurityChecks)+0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssembly位置提示、StackScrawMark和stackMark、IntPtr pPrivHostBinder、Boolean throwOnFileNotFound、Boolean For Inspection、Boolean suppressSecurityChecks)+36 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据assemblySecurity,RuntimeAssembly reqAssembly,StackScrawMark&stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean For Inspection,Boolean suppressSecurityChecks)+152 System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString、证据assemblySecurity、StackScrawMark和stackMark、IntPtr pPrivHostBinder、布尔值用于内省)+77 System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString、证据assemblySecurity、StackScrawMark和stackMark、布尔值ForInterspection)+21 系统.Reflection.Assembly.Load(字符串assemblyString)+28 System.Web.Configuration.CompliationSection.LoadAssemblyHelper(字符串assemblyName,布尔starDirective)+38

[ConfigurationErrorsException:无法加载文件或程序集“Interop.zkemkeeper”或其依赖项之一。试图加载格式不正确的程序。] System.Web.Configuration.CompliationSection.LoadAssemblyHelper(字符串assemblyName,布尔starDirective)+738 System.Web.Configuration.CompliationSection.LoadAllAssembliesFromAppDomainBinDirectory()+217 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)+130 System.Web.Compilation.BuildManager.GetReferencedAssembly(CompilationSection compConfig)+170 System.Web.Compilation.BuildManager.GetPrestartInitMethodsFromReferencedAssemblys()+92 System.Web.Compilation.BuildManager.CallPreStartInitMethods(字符串preStartInitListPath,布尔值&isRefAssemblyLoaded)+290 System.Web.Compilation.BuildManager.ExecuteRepapStart()+157 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager、IAApplicationHost appHost appHost、IConfigMapPathFactory configMapPathFactory、HostingEnvironmentParameters hostingParameters、PolicyLevel PolicyLevel、Exception appDomainCreationException)+549

[HttpException(0x80004005):无法加载文件或程序集“Interop.zkemkeeper”或其依赖项之一。试图加载格式不正确的程序。] System.Web.Htt