harmmeijer
Programmer
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
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