|
-
Mar 2nd, 2010, 02:11 AM
#1
[RESOLVED] Impersonate
I am doing excel automation in asp.net project. For this I need to impersonate and I am using
Code:
<identity impersonate="true" userName="DomainName\dana" password="Password"/>
For this MS Article , I am adding my name to the Users Group of Local computer. But I am getting error that Could not load assmebly. But I add my username as Admin/Power users, the page works well.
And my question is For Impersonate, what is the User type ?
Last edited by danasegarane; Mar 2nd, 2010 at 02:16 AM.
Please mark you thread resolved using the Thread Tools as shown
-
Mar 2nd, 2010, 02:56 AM
#2
Re: Impersonate
Hey Dana,
Can you show the exact error message that you are getting?
Also, can you show the code that is failing?
Gary
-
Mar 2nd, 2010, 03:54 AM
#3
Re: Impersonate
Hi Gary,
The exact Error message is
Code:
Access denied for the user xxx to access Tempory Internet files
Please mark you thread resolved using the Thread Tools as shown
-
Mar 2nd, 2010, 04:12 AM
#4
Hyperactive Member
Re: Impersonate
i am also using the same.... i am using power user login to access the folder. I never get such error. If i enter wrong password or different user then i got access denied error.
http://msdn.microsoft.com/en-us/libr...18(VS.71).aspx
Sagar
VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL
-
Mar 2nd, 2010, 04:35 AM
#5
Re: Impersonate
 Originally Posted by sagarpassion
Thanks for the Reply 
Currently I gave the Power Users Access only. But the Client is reluctant to Power Users. He says only Give the Users Role
Please mark you thread resolved using the Thread Tools as shown
-
Mar 2nd, 2010, 04:37 AM
#6
Re: Impersonate
 Originally Posted by sagarpassion
But in the Link there is no role information ?
Please mark you thread resolved using the Thread Tools as shown
-
Mar 2nd, 2010, 05:18 AM
#7
Hyperactive Member
Re: Impersonate
The identity of the process that impersonates a specific user on a thread must have the "Act as part of the operating system" privilege. By default, the Aspnet_wp.exe process runs under a computer account named ASPNET. However, this account does not have the required privileges to impersonate a specific user. You receive an error message if you try to impersonate a specific user. This information applies only to the .NET Framework 1.0. This privilege is not required for the .NET Framework 1.1.
To work around this problem, use one of the following methods:
Grant the "Act as part of the operating system" privilege to the ASPNET account (the least privileged account).
Note Although you can use this method to work around the problem, Microsoft does not recommend this method.
Change the account that the Aspnet_wp.exe process runs under to the System account in the <processModel> configuration section of the Machine.config file.
-----------
http://support.microsoft.com/kb/306158#2
Sagar
VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL
-
Mar 2nd, 2010, 05:38 AM
#8
Re: Impersonate
Just now I checked the
Code:
"Act as part of the operating system"
type.Its not working. Only Power users and Admin works
Please mark you thread resolved using the Thread Tools as shown
-
Mar 2nd, 2010, 01:42 PM
#9
Fanatic Member
Re: Impersonate
Like what has already been pointed out:
You may need to give access to ASPNET, IUSR_ComputerName, and/or IWAM_ComputerName read/write permissions to the tmp and Temp folders.
As what was also stated, posting the code would help determine a bit more for you.
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
-
Mar 10th, 2010, 09:46 AM
#10
Please mark you thread resolved using the Thread Tools as shown
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|