Solved

Webapplication run as another user

Posted on 2008-10-21
3
478 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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