?
Solved

Webapplication run as another user

Posted on 2008-10-21
3
Medium Priority
?
483 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 90 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 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