impersonation problem

U

ulrik

I want to save a file to another computer (via an UNC / mapped network
drive) from an ASP.NET 1.1 application running on win xp iis 6.0. I
have created an ASPNET account on the remote machine and given this
account permissions to write to the folder and I'm able to write the
file if I have the following in my web.config:
<identity impersonate="true" userName="ASPNET" password="1234"/>
....but if I remove this (and use the default impersonation) it fails...
eventhough I've set the password of the aspnet account (on the machine
im trying to write from) to 1234 (under computer administration ->
Accounts). WindowsIdentity.GetCurrent().Name returns "ASPNET" so it
impersonates correct so I think it uses another password... I've read
that this must be set in the machine.config, but this does'nt help. Is
there another place where I have to set the password of the ASPNET
account or....?
 
U

ulrik

I found the solution...
If af set username=ASPNET and password=1234 in the machine.config and I
have an ASPNET user account on both machines with the password 1234 and
I restart IIS after making these changes (very important (-:), then it
works without the entry in the web.config.

(e-mail address removed) skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top