相关疑难解决方法(0)

.net框架错误(HRESULT 0x8007000B)

我有一个使用Visual Studio 2005在32位Windows XP机器上编写的C#应用​​程序.该应用程序在Windows XP机器上运行良好,但是当我尝试在64位Windows 7专业机器上运行它时,我得到以下对话框在启动时:

在此输入图像描述

这是详细信息的全文.

  See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at ICSNeoCSharp.IcsNeoDll.icsneoTxMessages(Int32 hObject, IcsSpyMessage& pMsg, Int32 lNetworkID, Int32 lNumMessages)
   at ICSNeoCSharp.FormDTCApplication.transmitFlowControl(Int32 myArbID) in C:\Documents and Settings\Administrator\Desktop\Adam Stuff ThinkPad\DTC Checker FINAL\frmDTCApp.cs:line 1750
   at ICSNeoCSharp.FormDTCApplication.flowControlTimer_Tick(Object sender, EventArgs e) in C:\Documents and Settings\Administrator\Desktop\Adam Stuff ThinkPad\DTC Checker FINAL\frmDTCApp.cs:line …
Run Code Online (Sandbox Code Playgroud)

.net c# 64-bit x86

16
推荐指数
2
解决办法
7万
查看次数

使用64位regsvr32注册32位DLL

考虑以下理解

  1. 32位进程无法加载64位dll,反之亦然.
  2. 对于注册/注销一个DLL regsvr32调用入口点DllRegisterServer/ DllUnregisterServer加载目标DLL到通过其地址空间后LoadLIbrary.
  3. 在64位系统上,存在32位版本的regsvr32 C:\Windows\SysWOW64

但是在我的2008 R2 Box上,我能够通过64位regsvr32注册一个32位的dll.怎么可能?我错过了什么吗?

在此输入图像描述

c++ windows com rpc

12
推荐指数
2
解决办法
3万
查看次数

在64位系统上使用32位dll显示0x8007000B错误

我必须在我的应用程序中使用第三方DLL.DLL是32位,我使用的系统是64位操作系统.

我在我的DotNet应用程序(framework-4.5)中导入了32位DLL,如下所示

 [DllImport("Sample.dll",
  EntryPoint = "Add",
  CharSet = CharSet.Ansi,
  CallingConvention = CallingConvention.StdCall)]
  public static extern int Add(int iA, int iB);
Run Code Online (Sandbox Code Playgroud)

在IIS 7.5中 - 我将"启用32位应用程序"设置为"True".

并尝试将编译器管理器设置为 - X86,x64和任何CPU.

但是所有的尝试都会导致相同的错误

 An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题......

iis dllimport visual-studio-2010 32bit-64bit c#-4.0

7
推荐指数
1
解决办法
3万
查看次数

如何使用delphi中的com界面在windows 7中工作

我的公司运行一个用delphi编写的旧应用程序.一个简单的com服务器,为某些计算机提供一些数据库.我必须在每台计算机上运行一次服务器以注册com接口,并且自从windows xp中的任何东西以来它一直在工作.使用windows xp我从来没有遇到过一个问题,但在Windows 7中,该类只是不会注册,无论我尝试什么(我尝试导出注册密钥),当我打开客户端时,我仍然会收到错误"Class not registered ".

有什么建议?Plz救我的圣诞节.

delphi dcom interface windows-7

4
推荐指数
1
解决办法
1131
查看次数

标签 统计

.net ×1

32bit-64bit ×1

64-bit ×1

c# ×1

c#-4.0 ×1

c++ ×1

com ×1

dcom ×1

delphi ×1

dllimport ×1

iis ×1

interface ×1

rpc ×1

visual-studio-2010 ×1

windows ×1

windows-7 ×1

x86 ×1