Runtime Error R6034 运行时错误! 应用程序尝试加载 C 运行库时出现错误。

https://support.esri.com/zh-cn/technical-article/000013127 

https://www.cnblogs.com/liweis/p/6671161.html

Microsoft Visual C++ Runtime Error

但开发时,在调用GP时仍然会弹出此窗;经测试,需要修改配置文件解决,具体方法如下:

新建一个应用程序清单文件:

在其中加入如下代码:

<!--防止弹出Runtime Error R6034错误窗体-->

<dependency>

<dependentAssembly>

<assemblyIdentity type="win32" name="Microsoft.vc90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>

</dependentAssembly>

</dependency>

另外,调用GP时有时会报如下错误,但不影响结果,解决方法是在arcgis安装目录下拷备GpMetadataFunctions.dll到程序目录,然后引用即可:

"未能加载文件或程序集"GpMetadataFunctions, Version=10.4.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"或它的某一个依赖项。系统找不到指定的文件"。

猜你喜欢

转载自blog.csdn.net/Chen_cs/article/details/94743704