Publishing custom geoprocessing tool as service fails

759
1
09-13-2011 07:12 AM
StefanOffermann
Occasional Contributor II
Hi,

I have developed a custom geoprocessing function tool using C#. The dll is depending on some other DLLs, all located in one folder called "C:\gp". I have created a toolbox containing the custom gp function, the tbx file is also located in the folder C:\gp. When I try to publish the toolbox to arcgis server (runs local on my windows 7 machine "breton"), I get the following errors:

Configuration maintain.GPServer can not be started.
Configuration maintain.GPServerSync can not be started.
Server Object instance creation failed on machine breton.


and

Unspecified error

I verified that the soc account has full control on folder C:\gp

What can go wrong?

btw it is possible to publish a toolbox just containing an empty model.

Best regards, Stefan
0 Kudos
1 Reply
zengzhe
New Contributor
step 1:"Registering the DLL" to Desktop;
"C:\Program Files (x86)\Common Files\ArcGIS\bin\ESRIRegAsm.exe" "C:\mydata\GIS\ArcGISServerFlexAPIData\AO_GP\GPAddFeaturesTool\CSharp\GPAddFeatures\bin\Debug\GPAddFeatures.dll"

please register ARCGIS Installations type:  "Desktop"!

step 2:"Registering the DLL" to Server;
"C:\Program Files (x86)\Common Files\ArcGIS\bin\ESRIRegAsm.exe" "C:\mydata\GIS\ArcGISServerFlexAPIData\AO_GP\GPAddFeaturesTool\CSharp\GPAddFeatures\bin\Debug\GPAddFeatures.dll"

please register ARCGIS Installations type:  "Server"!

step 3:Add Custom GP Tool named Toolbox1;
(1)new toolbox named Toolbox1
(2)add tool named tool1 from register tool dll

step 4:Add Custom GP Tool named Toolbox2;
(1) new toolbox named Toolbox2
(2) new Model named Model1
(3) edit Model1�?Drag the(step 3 tool1)in model1,make variable from parameter...


step 5:Publishing Toolbox2 as service.
0 Kudos