createNewSite: error String index out of range: -1

Discussion created by tcoopman on Dec 18, 2013

On ArcGIS10.1 trying to use the ArcGIS Rest admin api, when I want to create a new site with "createNewSite" ( 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:

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" ( to register the directory and then it works just fine.

Is this a bug or am I doing something wrong?