473,388 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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 6066
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sboyle55 | last post by:
So I wrote a quick python program (my first ever) that needs to download pages off the web. I'm using urlopen, and it works fine. But I'd like to be able to change my browser string from...
0
by: Picho | last post by:
Hi all, I am trying to write a secure application and some of you have been very helpful on that subject. the only question remaining open after implementing certain methodologies is this: ...
3
by: Daniel | last post by:
Is it possible to retain local file system read, write, delete access while impersonating for access to a remote drive in a different domain? I need to be able to move files from a local computer...
7
by: Jason | last post by:
I have an ASP.NET application with forms authentication. However, the login details correspond to a Windows account (I cannot use Windows authentication). If I obtain a token with LogonUser, can I...
4
by: hoochiegooch | last post by:
Hi, all. I'm have some difficulty on Win2K3 trying to spawn a devenv.exe process from my ASP.NET app. I've set up an intranet website to allow engineers to launch builds of our product...
1
by: accyboy1981 | last post by:
Hi, I'm currently in charge of a website on an internal domain. I'm currently modifying some of the web pages and am wanting one of the pages to be dynamic and read two files located on seperate...
5
by: fab | last post by:
Hello, i'm trying to browse a UNC share through an ASP.NET application and i've got a problem : i've tried some examples from MSDN or other web sites (using LogonUser from Win32 API) and it...
11
by: JCav | last post by:
I need to call a COM object from a remote machine using C#. I also need to pass on a different userID and password to the call. Has anyone done this? I've used Java to do this using JIntegra, but...
1
by: =?Utf-8?B?c3VidGlsZQ==?= | last post by:
Hi :-) I'm having some trouble with LDAP and Active Directory on Win2k3 I use Windows Authentication and the code System.Threading.Thread.CurrentPrincipal.Identity.Name gives me the correct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.