473,403 Members | 2,293 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,403 software developers and data experts.

Impersonate Identity doesn't work on the server

Hello,

In my application I have to impersonate users, so I add

<identity impersonate="true" />

to the Web.config file.

As long as I run the application on my PC - everything works fine. As soon
as I put the application on the server - I cannot run the application at
all, I get an "Access denied" error. When I remove impersonation -
everything works OK.

What can I do about it? Whithout impersonation my application won't work.

The server is Windows 2003, and it's a domain controller. We are also using
Windows authentication.

I would appreciate your comments.

Thank you,

--
Peter Afonin
Nov 18 '05 #1
3 1506
Well, does the impersonated identity have access to whatever you are trying
to access?

Cheers
Ken
"Peter Afonin" <pe***@gudzon.net> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
Hello,

In my application I have to impersonate users, so I add

<identity impersonate="true" />

to the Web.config file.

As long as I run the application on my PC - everything works fine. As soon
as I put the application on the server - I cannot run the application at
all, I get an "Access denied" error. When I remove impersonation -
everything works OK.

What can I do about it? Whithout impersonation my application won't work.

The server is Windows 2003, and it's a domain controller. We are also
using
Windows authentication.

I would appreciate your comments.

Thank you,

--
Peter Afonin

Nov 18 '05 #2
Hi Ken,

I'm just trying to run the application, and it doesn't run with impersonated
identity. I don't know what access I should set up.

Thanks,

Peter

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Well, does the impersonated identity have access to whatever you are trying to access?

Cheers
Ken
"Peter Afonin" <pe***@gudzon.net> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
Hello,

In my application I have to impersonate users, so I add

<identity impersonate="true" />

to the Web.config file.

As long as I run the application on my PC - everything works fine. As soon as I put the application on the server - I cannot run the application at
all, I get an "Access denied" error. When I remove impersonation -
everything works OK.

What can I do about it? Whithout impersonation my application won't work.
The server is Windows 2003, and it's a domain controller. We are also
using
Windows authentication.

I would appreciate your comments.

Thank you,

--
Peter Afonin


Nov 18 '05 #3
I've found the solution in this article:
http://support.microsoft.com/default...b;en-us;824308

Although it's about Win2000 SP4 and I have Win2003, this worked for me.

Thanks,

Peter

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Well, does the impersonated identity have access to whatever you are trying to access?

Cheers
Ken
"Peter Afonin" <pe***@gudzon.net> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
Hello,

In my application I have to impersonate users, so I add

<identity impersonate="true" />

to the Web.config file.

As long as I run the application on my PC - everything works fine. As soon as I put the application on the server - I cannot run the application at
all, I get an "Access denied" error. When I remove impersonation -
everything works OK.

What can I do about it? Whithout impersonation my application won't work.
The server is Windows 2003, and it's a domain controller. We are also
using
Windows authentication.

I would appreciate your comments.

Thank you,

--
Peter Afonin


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Smith | last post by:
Hey folks, I'm trying to use the HttpWebResponse object in an ASP application, but I get a 401 unauthorized error on this line: HttpWebResponse response =...
4
by: Alvaro Pereira | last post by:
I have a ASP.NET project that prints a report to a NETWORK- PRINTER. I have impersonate=true in my web.config, but all reports are printed under ASPNET user (the one that is setted in...
6
by: Mark | last post by:
We are attempting to use impersonation to connect from our ASP.NET website to a SQL Server on the same domain. The code below works just fine in our web.config file: <identity impersonate="true"...
6
by: Erez Shor | last post by:
Hi, I need to build and asp page which access a remote windows server's registry and create a registry key. In order for the ASP page to be able to access the registry on the remote server I need...
1
by: Svein Terje Gaup | last post by:
I have a website running on Windows 2000 Server, that should be able to retrieve data from a datawarehouse on another machine running Windows 2000 Server, SQL Server 2000 and SQL Server 2000...
0
by: steven | last post by:
I have an asp.net webapp running on W2K server with .net framework 1.1 The intranet-app supports 2 languages: dutch (fallback language) and french. The choice is made with 'Request.UserLanguages'...
0
by: Steve Moreno | last post by:
I have a web app that I've developed on an XP Pro workstation and the app uses AD to grab the user's AD info like address, email, phone, etc... The app also allows these users to create an Excel...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
5
by: WT | last post by:
Hello, IIS6 on W2K3, .net 3.5, Sql 2005. All sp applied. My site is using windows authentication only and the web application connects to sql server residing on another server in the same...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.