Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change aspnet on a per application basis 1

Status
Not open for further replies.

harmmeijer

Programmer
Mar 1, 2001
869
CN
We ran into trouwble when lots of files need to be uploaded and saved on a file share on another server.
Becase webserver\aspnet is a local account I cannot give it write rights on the share since that server does not have that account (it is a local account of the web server).

Changing the machine.config would cause loads of other apps to fail so we would like to try to run only this application under a domain account.

So I changed the machine.config
<sectionGroup name="system.web">
...allowDefinition="MachineToApplication" />

The web.config:
<processModel
userName="domain\inetProcess"
password="password"
/>

Rebooted the machine and tried to create a file where only domain\inetProcess has write access. Sure enoung the application fails because it is still running under aspnet.

Temporary sollution is changing this in the web.config:
<identity impersonate="true"
userName="domain\inetProcess"
password="password"
/>

My question here is:
Is it possible to change the account your web app is running under (impersonate) on a per application bases?

We hope to run all applications under this domain account in the future but we have to do this per application.



Greetings, Harm Meijer
 
Your temporary solution (i.e. setting the account in the web.config file) is what i would have suggested as a permanant solution.

The web.config file controls the settings for each application so it makes sense to set the user that the application runs under in this file.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Sorry for the late response, since you are a valuable memeber of this forum I will take your advice.

The machine config will have userName and password in the processmodel when all applications run under that user without any problems.

Thank you for your responce.



Greetings, Harm Meijer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top