M
Mark
This has been driving me absolutely mad. I've been googling for 6 hours and
all I've found are useless or incorrect answers ("Why don't you use IIS 6?"
is not an answer though it seem to be the most prevalent response)
I have a .aspx page on a controlled website in the above environment. It
wants to launch a bat file in background. I found one post that said, by
default, aspnet_wp.exe runs under the ASPNET account and can't run anything
that requires user impersonation. It suggested changing the use to the
NETWORK SERVICE account. Sounds easy, right?
That's what's started the 6 hours of googling. I have yet to find one
reference that says how to do it. All you get are fragmentary allusions at
best and often a lot of flat-out wrong advice.
I've run aspnet_regiis -ga on the network service account. It said it was
successful anyway.
I've tried changing machine.config
<system.web>...
<processModel autoConfig="true"/>
to
<processModel autoConfig="true" userName="NETWORKSERVICE" password="" />
<processModel autoConfig="true" userName="NETWORK SERVICE" password="" />
<processModel autoConfig="true" userName="NT AUTHORITY\NETWORK SERVICE"
password="" />
and a few others but all I ever get is errors in the event log saying
aspnet_wp.exe couldn't be launched because the username and password are
wrong (seemed to work for aspnet_regiis, though).
I tried some of the other suggestions, namely setting web.config
<system.web>
<identity impersonate="true" userName="NETWORKSERVICE" password=""/>
aspnet_wp.exe launches but then the says it can't use the credentials.
I don't have a choice about OS or IIS versions. How *DOES* one get
aspnet_wp.exe running under the network service account?
Thanks
Mark
all I've found are useless or incorrect answers ("Why don't you use IIS 6?"
is not an answer though it seem to be the most prevalent response)
I have a .aspx page on a controlled website in the above environment. It
wants to launch a bat file in background. I found one post that said, by
default, aspnet_wp.exe runs under the ASPNET account and can't run anything
that requires user impersonation. It suggested changing the use to the
NETWORK SERVICE account. Sounds easy, right?
That's what's started the 6 hours of googling. I have yet to find one
reference that says how to do it. All you get are fragmentary allusions at
best and often a lot of flat-out wrong advice.
I've run aspnet_regiis -ga on the network service account. It said it was
successful anyway.
I've tried changing machine.config
<system.web>...
<processModel autoConfig="true"/>
to
<processModel autoConfig="true" userName="NETWORKSERVICE" password="" />
<processModel autoConfig="true" userName="NETWORK SERVICE" password="" />
<processModel autoConfig="true" userName="NT AUTHORITY\NETWORK SERVICE"
password="" />
and a few others but all I ever get is errors in the event log saying
aspnet_wp.exe couldn't be launched because the username and password are
wrong (seemed to work for aspnet_regiis, though).
I tried some of the other suggestions, namely setting web.config
<system.web>
<identity impersonate="true" userName="NETWORKSERVICE" password=""/>
aspnet_wp.exe launches but then the says it can't use the credentials.
I don't have a choice about OS or IIS versions. How *DOES* one get
aspnet_wp.exe running under the network service account?
Thanks
Mark