createNewSite: error String index out of range: -1

3414
0
12-18-2013 01:50 AM
ThomasCoopman
New Contributor II
Hi,

On ArcGIS10.1 trying to use the ArcGIS Rest admin api, when I want to create a new site with "createNewSite" (http://resources.arcgis.com/en/help/server-admin-api/createSite.html). I get the following error when using an UNC path for a "CACHE" directory's physicalPath:

Failed to create the site. String index out of range: -1


I tried to write it as:
"\\\\UNC\\PATH"
"\\UNC\PATH"

but neither work.

Using a local directory works just fine.

It's not a problem with the directory not being available because I can use "register" (http://resources.arcgis.com/en/help/server-admin-api/registerDirectory.html) to register the directory and then it works just fine.

Is this a bug or am I doing something wrong?
0 Kudos
0 Replies