469,575 Members | 1,194 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Impersonating

We have an Index Server on Win2k Server SP4 indexing about 250.000 docs.
We have written an ASP.NET serch page, setup a new virtual directory, and
set to use .NET framework 2.0.
On the server is installed also .NET framework 1.0, for the rest of the
Intranet.
The search page is setup to impersonate the user running the query
in order to return only the documents that the user have access to.

However most of the times, after a number of seconds (like 30 or more),
we receive the error message "An error occurred while attempting to
impersonate."
(see error details below)
I've looked around for a time, but I couldn't find any helpful info.

Do you have any ideas?

Thanks in advance.
Best Regards,
Leonardo Arena

--begin error details

SERVER01 2006-04-21 10:28:00 2 3 1309 ASP.NET
2.0.50727.0 Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/21/2006 10:27:37 AM
Event time (UTC): 4/21/2006 8:27:37 AM
Event ID: 058697a75b7c4314bfbc926e066b25d8
Event sequence: 116
Event occurrence: 11
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/search-9-127900807847258805
Trust level: Full
Application Virtual Path: /search
Application Path: d:\Inetpub\wwwroot\search Machine name: SERVER01

Process information:
Process ID: 2420
Process name: aspnet_wp.exe
Account name: SERVER01\ASPNET
Exception information:
Exception type: HttpException
Exception message: An error occurred while attempting to impersonate.
Execution of this request cannot continue.

Request information:
Request URL: http://SERVER01/search/index.aspx
Request path: /search/index.aspx
User host address: 10.44.9.144
User: DOMAIN\gdonofrio
Is authenticated: True
Authentication Type: Negotiate
Thread account name: SERVER01\ASPNET

Thread information:
Thread ID: 5
Thread account name: SERVER01\ASPNET
Is impersonating: False
Stack trace: at System.Web.ImpersonationContext.GetCurrentToken()
at System.Web.ImpersonationContext.get_CurrentThreadT okenExists()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
at System.Web.HttpApplication.ResumeSteps(Exception error)
at
System.Web.HttpApplication.System.Web.IHttpAsyncHa ndler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)

Custom event details:

-- end error details
Apr 26 '06 #1
2 5821
Incidentally I discovered the cause of the problem.
Index Server had not yet finished to index all documents.
Now that indexing has finished, the error disappeared.

Leonardo

"Leonardo Arena" wrote:
We have an Index Server on Win2k Server SP4 indexing about 250.000 docs.
We have written an ASP.NET serch page, setup a new virtual directory, and
set to use .NET framework 2.0.
On the server is installed also .NET framework 1.0, for the rest of the
Intranet.
The search page is setup to impersonate the user running the query
in order to return only the documents that the user have access to.

However most of the times, after a number of seconds (like 30 or more),
we receive the error message "An error occurred while attempting to
impersonate."
(see error details below)
I've looked around for a time, but I couldn't find any helpful info.

Do you have any ideas?

Thanks in advance.
Best Regards,
Leonardo Arena

--begin error details

SERVER01 2006-04-21 10:28:00 2 3 1309 ASP.NET
2.0.50727.0 Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/21/2006 10:27:37 AM
Event time (UTC): 4/21/2006 8:27:37 AM
Event ID: 058697a75b7c4314bfbc926e066b25d8
Event sequence: 116
Event occurrence: 11
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/search-9-127900807847258805
Trust level: Full
Application Virtual Path: /search
Application Path: d:\Inetpub\wwwroot\search Machine name: SERVER01

Process information:
Process ID: 2420
Process name: aspnet_wp.exe
Account name: SERVER01\ASPNET
Exception information:
Exception type: HttpException
Exception message: An error occurred while attempting to impersonate.
Execution of this request cannot continue.

Request information:
Request URL: http://SERVER01/search/index.aspx
Request path: /search/index.aspx
User host address: 10.44.9.144
User: DOMAIN\gdonofrio
Is authenticated: True
Authentication Type: Negotiate
Thread account name: SERVER01\ASPNET

Thread information:
Thread ID: 5
Thread account name: SERVER01\ASPNET
Is impersonating: False
Stack trace: at System.Web.ImpersonationContext.GetCurrentToken()
at System.Web.ImpersonationContext.get_CurrentThreadT okenExists()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
at System.Web.HttpApplication.ResumeSteps(Exception error)
at
System.Web.HttpApplication.System.Web.IHttpAsyncHa ndler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)

Custom event details:

-- end error details

Apr 26 '06 #2
Hi Leonardo

Is there anyway you can share your ASP(x) source code which does the
Search.
If you could also let me know "How to/What to" setupon Index Server
that would be great, I have a similar requirement and dont know how to
do it though.

Apr 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by sboyle55 | last post: by
7 posts views Thread by Jason | last post: by
4 posts views Thread by hoochiegooch | last post: by
1 post views Thread by accyboy1981 | last post: by
5 posts views Thread by fab | last post: by
1 post views Thread by =?Utf-8?B?c3VidGlsZQ==?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.