惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
罗磊的独立博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
博客园_首页
人人都是产品经理
人人都是产品经理
量子位
美团技术团队
The Cloudflare Blog
小众软件
小众软件
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
博客园 - Franky

博客园 - flyingfish

ORACLE 监听日志文件太大停止写监听日志引起数据库连接不上问题 PostgreSQL Crosstab Query (交叉表)试用随记 基于陕西省地理信息公共服务平台的2011西安世园会电子地图正式发布 Toad Connecting: "cannot load OCI DLL: C:\oracle\product\10.2.0\db_2\BIN\oci.dll" - flyingfish ArcSDE启动遇到ORA-12560: TNS: 协议适配器错误解决办法 【转】Javascript 获取链接(url)参数的方法 [转]VisualStudio LightSwitch 7大顶级功能 [转]Silverlight 之轻 有关敏捷软件测试的文章 [转]SSL应用系列之三:去掉讨厌的证书提示警告(多图精解) 【转】Skyline软件介绍 【转】TB(TerraBuilder)转换日志:解决影像数据坐标转换后,在Skyline平台不能显示的问题 如何知道ORACLE表最后被修改,访问的时间 【转】如何成功实施结对编程 【转】结对编程及其优势 诚聘Silverlight、WCF程序员(或实习生) Web系统突然爆”Asp.net ajax客户端框架未能加载“的一种可能原因(误改服务器系统时间) 再读《没有银弹》 [转]华为总裁任正非谈企业管理:正确的方向来自于妥协
[转]VS2008在64位Windows平台上编译ArcEngine导致HRESULT:0x8...
flyingfish · 2010-10-04 · via 博客园 - flyingfish

2010-10-04 17:38  flyingfish  阅读(3576)  评论()    收藏  举报

VS2010在WIN7 X64上编译以前在x84 XP上的Skyline程序遇到同样问题,参照如下此贴解决。

---------------------

VS2008 在64位的系统(XP/Vista/Win7均是)中编译ArcEngine(9.3SP1)并运行时提示:

没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))

原因:ArcEngine9.3没有原生支持64位,而是以32位兼容方式运行

解决办法:在项目属性里设置“生成”=>“目标平台”为x86而不是默认的ANY CPU.

ESRI官方也是这么解决的:

http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=33000

Bug:  Error: Class not registered(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

Article ID: 33000
Bug Id: NIM007516
Software:  ArcGIS Engine Runtime 9.2, 9.3
Platforms:  Windows 2000, XP

Description

Running an application from Visual Studio 2005 on 64-bit computers, displays the following error message: 

"Error : Class not registered(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)"

Cause

When running a Visual Studio application, the default Common Language Runtime (CLR) platform in the Visual Studio is set to Any CPU. This default must be changed on 64-bit computers to compile the assemblies with the 32-bit, x86 compatible CLR.

Workaround

Change the default Platform Target CPU to allow applications to run on 64-bit machines:

  1. Right-click on the solution in the Visual Studio Solution Explorer and open the Properties window.
  2. Click the compile tab: Visual Basic, or the build tab: Visual C#.
  3. For Visual Basic, click the Advanced tab.
  4. Select x86 as the Target CPU (Visual Basic) or Platform Target (Visual C#).
  5. Rebuild the solution.

Created: 5/4/2007
Last Modified: 10/30/2009