Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Impersonating

Reply
Thread Tools

Impersonating

 
 
=?Utf-8?B?TGVvbmFyZG8gQXJlbmE=?=
Guest
Posts: n/a
 
      04-26-2006
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TGVvbmFyZG8gQXJlbmE=?=
Guest
Posts: n/a
 
      04-26-2006
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

 
Reply With Quote
 
 
 
 
prabhupr@hotmail.com
Guest
Posts: n/a
 
      04-30-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Impersonating doesn't work on Win2003 fab ASP .Net 5 05-19-2006 03:02 PM
Compilation error when impersonating =?Utf-8?B?QWxpc3RhaXIgTGFjeQ==?= ASP .Net 3 07-19-2005 05:23 PM
Impersonating a User and Starting Standalone Processes stop workin =?Utf-8?B?SW5kZXB0aA==?= ASP .Net 1 04-01-2005 09:05 PM
Need Help Impersonating Across Process Boundaries hoochiegooch@hotmail.com ASP .Net 4 02-07-2005 04:40 PM
impersonating and LogonUser Jason ASP .Net 7 01-05-2004 03:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57