POST
|
Dear Víctor M. Bajo Pérez I have same problem which what you had. Are you solve your problem? Best regards, Truong Pham
... View more
04-07-2013
07:27 PM
|
0
|
0
|
525
|
POST
|
Hi everyone, I developed custom geoprocessing tool on arcgis 9.3.1 products. I had installed arcgis desktop (arc catalog and arcmap) 9.3; arcengine; arcobject; and arcgis server 9.3.1 on my desktop computer. For now, i success on custom tool which can run on arcmap. But when i build the model and publish it (tool and model that use this tool) to arcgis server, it get error when execute this model. Error log show: 'ERROR 000816: The tool is not valid.' I had search on internet i found some dicussion about this error: http://gis.stackexchange.com/questions/19268/is-it-possible-to-publish-a-geoprocessing-services-that-uses-a-custom-gptool-on http://forums.arcgis.com/threads/16614-Add-Custom-GP-Tool-to-Toolbox Folowing that dicussions, i have try 1. Build my custom tool to asembly with strong name 2. Register custom tool to arcgis (in here i wonder which arcgis product) - folowing this page: http://resources.esri.com/help/9.3/arcgisengine/dotnet/9826f81b-278c-49cc-a912-ab8d86f5e91e.htm The command i usee is: regasm EditTools.dll /codebase The result is: C:\Windows\Microsoft.NET\Framework\v2.0.50727>RegAsm.exe C:\Users\Administrator\ Downloads\GPConvexHullTool\CSharp\GP_DGNToSDE\bin\Debug\GP_DGNToSDE.dll /codebas e Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.5420 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Types registered successfully When i finished two step, i re-publish new map service but get the same error: ERROR 000816: The tool is not valid. It seem that i can not register with arcgis. My question is how to fix this bug? Another question is when i use the command "regasm EditTools.dll /codebase", which product of arcgis i register for my 'EditTools.dll'? Thanks.
... View more
04-04-2013
07:50 PM
|
0
|
0
|
488
|
POST
|
My suggestion is to either debug your code or modify it such that it does logging. For example, add a try/catch around the call to the unmanaged code and log any errors. The problem might be that the logic is not finding your DLL. Did you put in in the same directory as the executable image which is running, e.g. ArcMap.exe? You should be able to modify the System PATH environment variable and put it in whatever directory that you choose. Just note that existing process will not see the updated environment variable unless they are restarted, e.g. services. I used try - catch but is just run throw the code with out catch. I had try put Shp2Dgn dll to Arcgis.exe (C:\Program Files\ArcGIS\Bin) folder also but it seem can not see this library. Shp2Dgn is library in C++ to convert from Shape file to DGN file. I show here test code in arcengine which work fine. [ATTACH=CONFIG]23188[/ATTACH] And other code in arcobject geoprocessing that didn't call C++ library. [ATTACH=CONFIG]23189[/ATTACH] I wondering that in geoprocessing code, i have to register dll with arcgis (by code or manually). I had try register Shp2Dgn dll manually but not success. Because of it isn't com dll. Please help me! Thanks for your time.
... View more
04-03-2013
06:03 PM
|
0
|
0
|
255
|
POST
|
I use arcobject to build custom tool for working with arcmap or arcgis server like a geoprocessing tool. Is there any way to use third party dll in my case? I have try test app as an arcengine application. It work fine when i copy 3nd dll to debug/bin folder and call: [DllImport("Shp2Dgn.dll")] public static extern int shp2dgn(string InputShp, string outputDGN, string seedFile); But when i try this code in geoprocessing app. Nothing occur.
... View more
04-03-2013
12:38 AM
|
0
|
3
|
2190
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|