Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Does anyone have a code example for how to impersonate another user on the web server.

 

My ASPNET user can't access the active x dll that I have to use, and rather than spend three more days trying to figure it out I am going to try using a different user.

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Posted

Thanks for the fast reply

 

I tried this:

 

<identity impersonate="true" userName="BOB" password=""/>

<authentication mode="Windows" />

 

And it came back as unable to verify. I also tried it with the PC name before BOB with a slash

 

Any ideas?

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Posted

Ok, found out how to do this

 

Create a User in Windows with a password (the thing has trouble with blank passwords)

Give the User the rights you want it to have

In Machine.Config, which is in the WINNT/Microsoft.Net/Framework/(numeric)/Config directory, seach for the userName=(machine) and reset the username and password to the new user

 

Use THIS and not the web.congif file, and it works really well

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...