arcGIS二次开发报错

Error 1 未能加载文件或程序集“file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ToolBoxes/ESRI.ArcGIS.AnalysisTools.dll”或它的某一个依赖项。试图加载格式不正确的程序。 行 141,位置 5。 C:\Users\Administrator\Documents\Visual Studio 2010\Project

这是因为 Resgen.exe (Resource File Generator)是运行在64位进程中的,当它试图加载32位的程序集时将会失败。

以下是微软官方网站上找到的解决方案,翻译如下:

为了解决该问题,你需要按以下步骤执行:
1.关掉所有 Visual Studio 实例
2.在 Visual Studio Tools (VS安装后在程序目录下会有该目录)下,右键使用管理员身份打开“Visual Studio 命令提示(2010)”,改变目录到"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\”
3.输入命令:corflags /32bit+ ResGen.exe /force
4.使用记事本打开 <project_name>.csproj
5.添加属性 <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture> 到 PropertyGroup 节点下,保存并关闭 csproj 文件。

再次编译解决方案,OK了。

时间: 2024-07-31 06:44:19

arcGIS二次开发报错的相关文章

iOS 开发报错 clang: error: unable to execute command: Segmentation fault: 11

ios开发报错 ld: can't link with a main executable file '/Users/apple/Library/Developer/Xcode/DerivedData/LePaiDemo-ftsuwgzvjdjwzghgkuefbzvdkvey/Build/Products/Debug-iphoneos/LePaiDemo.app/LePaiDemo' for architecture armv7 clang: error: unable to execute

JQuery开发报错集锦

报错一:JQuery $.each遍历JSON字符串报Uncaught TypeError:Cannot use 'in' operator to search for "70"......  原因分析:一般由于服务器端传来的变量类型不是json格式,而是其他的,常见的如string,这是用$.each循环就会报这个错误.               建议在jquery端确认该变量的类型,如alert(typeof(data));看看是不是这个原因导致的?如果打印string表明不是j

AX dynamics 2012 ssrs 开发报错:Native compiler return value: ‘[BC30179]

具体报错内容如下: System.Web.Services.Protocols.SoapException: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC30179] class 'Textbox34_TextBoxExprHost' and class 'textbox34_TextBoxExprHost' conflict in class 'Repor

react native 开发报错

1:oc对象名是RCTPoctalk 2:js中导入原生方法 3:报错:对象没有定义 出现这样的问题可能是react native 不允许使用"RCT"开头的前缀 4:解决办法:"RCT_EXPORT_MODULE()" 导出对象方法的宏默认是OC对象名 ,  在宏中添加另起一个名字,js导出方法也修改下

微信小程序云开发报错解决: Setting data field &quot;openid&quot; to undefined is invalid.

最近在学习微信小程序云开发,刚一开始就遇到了问题. 点击获取openid的时候控制台开始报错: [云函数] [login] user openid:  undefined VM97:1 Setting data field "openid" to undefined is invalid. 然后我开始去百度搜索解决这个问题,各种方法都试过了,还是没有解决.换了一个思路,开始追踪代码: 鼠标悬停到右边的 index.js:55,发现是/pages/index/index.js文件的第55

java ee开发报错

七月 26, 2015 9:57:52 下午 org.apache.coyote.AbstractProtocol destroy信息: Destroying ProtocolHandler ["ajp-nio-8009"]七月 26, 2015 9:57:52 下午 org.apache.coyote.AbstractProtocol destroy严重: Failed to destroy end point associated with ProtocolHandler [&qu

iOS开发报错之attempt to dismiss modal view controller whose view does not currently appear

刚才遇到一个问题,现在在这就当纪录一下,大家有遇到的能快速找到原因,分享一下啊. 在APP中,需要用户登录后才能使用,所以我通过更改APP的[UIApplicationsharedApplication].keyWindow.rootViewController来控制界面的跳转. 在使用过程中出现如下问题: 1.登录成功后点击注销按钮,弹出注销提示框UIAlertView: 2.注销成功后重新登录: 3.再次点击注销不再弹出UIAlertView. 提示如下警告: 点击注销按钮执行更改rootv

PDMS二次开发之PML开发一些常见查询语句

1.查找session 以及session number var !DBname DBname !db = object db(!DBname) !session = !db.lastsession() 下面是查询结果截图 q var !db q var !sessioon.number 2.从某个时间段到当前,模型的差异文件判断模型是否发生修改,并写入文件. alpha log /$!file  overwrite DIFFERENCE $!ojbName SINCE 15:36 14 May

Android开发之自定义Dialog二次打开报错问题解决

之前自定义了一个AlertDialog对话框,第一次点击时正常,但第二次调用时会出现错误:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 关于这个错误纠结了我好久,在网上百度了也不少,但感觉解决效果都达不到自己想要的效果.网上的解释说是一个子视图指定了多个父视图.由此可以推断出,在第二