Page 1 of 1

Error when using with a web service

Posted: Wed Nov 03, 2010 3:00 am
by jkonline
I have created a web service using the vault API. This works fine on my machine however when deployed to the server it fails trying to create a folder under the default profile? Subsequent attempts give an object not set error.

I added <identity impersonate="true"/> so that the Web Service no longer used the asp.net account however that just resulted in System.Exception: Couldn't create local settings path.

I am missing something?

Thanks

John

Re: Error when using with a web service

Posted: Wed Nov 03, 2010 3:41 am
by jkonline
Turns out that any access to vault creates a cache under the current users profile which I did not realise. The web service runs under IIS so runs under ASP.NET account which does not have a profile so uses the default one however as the account has limited access to the OS it errors creating the folder.

I can configure it to identity impersonate (this is the change to the web.config) however this will use the windows user passed via windows authentication. I assume it will have the same issue and try an use the default profile.

I will try to specify the web service to impersonate an account that does have a profile.

Re: Error when using with a web service

Posted: Fri Nov 05, 2010 3:17 pm
by lbauer
You can set the cache location to a specific location with the 2nd argument to ClientInstance.Init().