Solved

Webapplication run as another user

Posted on 2008-10-21
3
480 Views
Last Modified: 2013-11-05
Well.. Hello all over there,

I have written a Web-Application which can read all rights of a folder... Now I need to run this Web-Application on an IIS with special rights... For example by the user "domain\testuser"... So the Website have to run as testuser of the domain...
would it be possible?

pmb µatthias
0
Comment
Question by:counterroot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 22767160
Hello counterroot,

In your web.config line, locate the  element and change it accordingly:

            

Regards,

TimCottee
0
 
LVL 1

Author Comment

by:counterroot
ID: 22769160
well thx =)
if I would choose the option with the web.config...
what would be the full web.config-file? Because I didn't find it... It should be located in C:\Inetpub\wwwroot\ for example..

I tried to create this file and fill it with your line... but without results... -.-*

Now I could identy the Application-Pool through the inetmgr. so the problem is solved, but...
Would it be possible that you attach some web.config with this line? so I could see it? It would be the more interesting solution ;)
pmb µatthias
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 30 total points
ID: 22769488
Web.config should be located in the root folder of your application, so if you have created the site in IIS and set the location of the application to a specific folder (not necessarily \inetpub\wwwroot) then this is where you would find it. I could post an example but as it would not be appropriate for your application (assemblies will differ etc) it would not be much use.

The advantage of using the web.config method is that if you do not specify a username and password but set impersonate="true" then it will use the credentials of the logged in user on the client to run. This can be useful in intranet environments where you know that a user will be logged into the domain as their permissions will then apply to their session.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Services - Run a Program Grey Out 3 97
IIS Windows Server FTP 5 40
OWA issue - Exchange 2013 - 440 Login Timeout 8 63
Blocking outside IP Addresses 16 57
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question