Disable impersonation programmatically?

T

Tobias Lekman

Hi,

I have an issue with Indexing service and impersonation,
namely that Indexing service do not work properly with

<identity impersonate="true" />

I am using this parameter for different access levels for
WRITE access and am using trusted sql connections,
therefore I do not want to disable impersonation.

The question is: is there a way to programmatically,
within the code-behind or class file, to disable
impersonation and execute using the anonymous or system
account??

The only way I found around this was to create a web
service as a wrapper for the indexing service calls, which
is not very elegant at all.

Any ideas would be deeply appreciated.

Tobias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top