FileNet Api access rights for asp.net

1.1k views Asked by At

I have some sort of trouble, but i can't figure out where it can be. I have a search method. It uses filenet api and connects to server using admin credentials.

ClientContext.SetProcessCredentials(new UsernameCredentials(login, password));
var connection = Factory.Connection.GetConnection(storeUri);
var domain = Factory.Domain.GetInstance(connection, null);
var store = Factory.ObjectStore.FetchInstance(domain, storeName, null);
return store;

At target system it works fine, when i run console application. But when i run it at asp.net web site i got "The requester has insufficient access rights to perform the requested operation." error. Who is requester at this point?

1

There are 1 answers

3
Damon On

When you're running the application through a console, the user you are logged in as is used i.e. this is you and you probably have admin rights on the machine.

When you run it through IIS, this will depend on which version of IIS you are using. Look at this question for more information. You'll either need to change which user the web site is running under or grant further permissions to the user (or group) that is currently configured.