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

Identity impersonate not working

I was testing impersonation on a web site and added the line below to my
web.config file. Now it fails with the message The current identity
(DOMAIN01\LegalWeb) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.
The line I added was
<identity impersonate="true" userName="DOMAINLT\LegalWeb" password="" />

Thanks.
David
May 3 '07 #1
6 9617
On May 3, 10:01 pm, "David C" <dlch...@lifetimeinc.comwrote:
I was testing impersonation on a web site and added the line below to my
web.config file. Now it fails with the message The current identity
(DOMAIN01\LegalWeb) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.

The line I added was
<identity impersonate="true" userName="DOMAINLT\LegalWeb" password="" />

Thanks.
David
Why do you think it's not working? It says that the LegalWeb does not
have a write access. Usually, ASP.Net is running under ASP.Net
account. It means impersonation is working (but your user has no write
access).

May 3 '07 #2
But if I log into the domain as that user I get the web application to
display just fine. I am new to impersonation so I don't fully understand
it. Thanks.

David
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@h2g2000hsg.googlegrou ps.com...
On May 3, 10:01 pm, "David C" <dlch...@lifetimeinc.comwrote:
>I was testing impersonation on a web site and added the line below to my
web.config file. Now it fails with the message The current identity
(DOMAIN01\LegalWeb) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Te mporary ASP.NET Files'.

The line I added was
<identity impersonate="true" userName="DOMAINLT\LegalWeb" password="" />

Thanks.
David

Why do you think it's not working? It says that the LegalWeb does not
have a write access. Usually, ASP.Net is running under ASP.Net
account. It means impersonation is working (but your user has no write
access).

May 3 '07 #3
Try running, from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ :

aspnet_regiis -ga DOMAIN01\LegalWeb

That will give that account the permissions it needs.

Juan
====
"David C" <dl*****@lifetimeinc.comescribió en el mensaje
news:ea**************@TK2MSFTNGP06.phx.gbl...
But if I log into the domain as that user I get the web application to display just fine. I am
new to impersonation so I don't fully understand it. Thanks.

David
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@h2g2000hsg.googlegrou ps.com...
>On May 3, 10:01 pm, "David C" <dlch...@lifetimeinc.comwrote:
>>I was testing impersonation on a web site and added the line below to my
web.config file. Now it fails with the message The current identity
(DOMAIN01\LegalWeb) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET Files'.

The line I added was
<identity impersonate="true" userName="DOMAINLT\LegalWeb" password="" />

Thanks.
David

Why do you think it's not working? It says that the LegalWeb does not
have a write access. Usually, ASP.Net is running under ASP.Net
account. It means impersonation is working (but your user has no write
access).


May 3 '07 #4
On May 3, 10:21 pm, "David C" <dlch...@lifetimeinc.comwrote:
But if I log into the domain as that user I get the web application to
display just fine. I am new to impersonation so I don't fully understand
it. Thanks.
I think in this case you don't have that line in the web.config

<identity impersonate="true" />

and the site is running under default account (impersonation is
disabled by default). Therefor you don't get an error.

More about impersonation

http://support.microsoft.com/kb/306158
http://msdn2.microsoft.com/en-us/library/xh507fc5.aspx

May 3 '07 #5
Thank you. What about Juan's suggestion?

David
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@c35g2000hsg.googlegr oups.com...
On May 3, 10:21 pm, "David C" <dlch...@lifetimeinc.comwrote:
>But if I log into the domain as that user I get the web application to
display just fine. I am new to impersonation so I don't fully understand
it. Thanks.

I think in this case you don't have that line in the web.config

<identity impersonate="true" />

and the site is running under default account (impersonation is
disabled by default). Therefor you don't get an error.

More about impersonation

http://support.microsoft.com/kb/306158
http://msdn2.microsoft.com/en-us/library/xh507fc5.aspx

May 3 '07 #6
On May 3, 11:02 pm, "David C" <dlch...@lifetimeinc.comwrote:
Thank you. What about Juan's suggestion?
This will grant the permission to write to the Temporary ASP.NET Files
folder and access to the IIS Metabase. You can also set write
permissions directly on the folder (Right Click on the Temporary
ASP.NET Files folder and select Properties - Security...)


May 3 '07 #7

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

Similar topics

12
by: Anil Krishnamurthy | last post by:
We have an ASP.NET application that uses COM objects through Interop. The web application requires access to network and database resources and hence, needs to impersonate a domain account. The...
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...
1
by: Sorin Sandu | last post by:
How can I override Identity Impersonate setting from machine.config on a site on the same server ? I am using impersonate on most web sites but on one I need to use Windows Identity.
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
2
by: franzhe | last post by:
Hi all, in a simple ASP.Net application with resources in satellite assemblies I have the following problem: If I set <identity impersonate="true"/>, accessing a culture specific resource...
3
by: Sonal | last post by:
I am trying to impersonate user with windows account. If I write following lines in web.config it show error <identity impersonate="true" userName="contoso\Jane" password="pass"/> ERROR:...
4
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this...
7
by: WT | last post by:
Hi, Working on MS CRM 3, I have created an aspx page using vs2005 and .NET 2. I am faced with a problem concerning the identity of the running user. More details: The CRM application which...
8
by: Doug | last post by:
Visual Studio 2005, SQL Server 2000, ASP.NET/VB.NET Not allowed to use the ASPNET machine account in SQL Server (very strict environment). Need to use Windows authentication, so we use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.