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
Error when using with a web service
Moderator: SourceGear
Re: Error when using with a web service
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.
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
You can set the cache location to a specific location with the 2nd argument to ClientInstance.Init().
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager