IGPUtilities::MakeGPValueFromObject method throws an error when SDE workspace is used to set the environment, if SDE is connected using IPropertySet.
上次发布: August 25, 2014ArcGIS Engine
漏洞 ID 编号
NIM044151
已提交
April 10, 2009
上次修改时间
June 5, 2024
适用范围
ArcGIS Engine
找到的版本
10.0
编程语言
C#
操作系统
Windows OS
操作系统版本
XP
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
1. IWorkspaceFactory::OpenFromFile can be used to connect to SDE workspace. Connection file can be used to set the connection with the SDE.2. Follow the below mentioned steps to test the same.a. Comment out the IPropertyset related part of the code from the open_ArcSDE_Workspace function b. Uncomment the following line in the code IWorkspace myWsv = workspaceFactory.OpenFromFile(@"C:\Documents and Settings\pallavit\Application Data\ESRI\ArcCatalog\Connection to hpcompaq-134.sde", 0);c. Change the filepath in the above OpenFromFile method.d. And run the application again.e. It will run without any error.