0

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 Answer 1

1

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.

3
  • I use IIS 7, I have AppPool with LocalSystem identity, what permission should i grant?
    – Horosho
    Commented Sep 9, 2013 at 14:16
  • @Horosho, afraid I can't answer that as I don't know what the API is doing or the permissions it's looking for. Try looking at this link bluevalleytech.com/techtalk/blog/… for some guidance.
    – Damon
    Commented Sep 9, 2013 at 14:26
  • Thank you! Api is used for searching, but i can't understand, i use admin credentials, so i can do anything, but probably i can't connect using app pool identity.
    – Horosho
    Commented Sep 10, 2013 at 5:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.