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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Not Running Under ASPNET

Status
Not open for further replies.

anonim1

Programmer
Dec 10, 2004
108
US
I'm running an ASP.NET web application on a Windows 2003 box. For some reason, the application does not run under the ASPNET user context. In the Event Viewer, I see:

Logon attempt using explicit credentials:
User Name: NETWORK SERVICE
Domain: NT AUTHORITY
User whose credentials were used:
Target User Name: IUSR_MACHINENAME
Target Domain: MACHINENAME

In my web.config file, I've tried both <identity impersonate="false" /> and leaving it out, and it makes no difference.

I created a test application to write the value of System.Environment.UserName to the screen, and it displays NETWORK SERVICE as the username.

I've disabled Anonymous Access in IIS and have checked the Integrated Windows Authentication box. In the web.config file, I have <authentication mode="Windows" />.

What am I missing??
 
IIS 6.0 in Windows Server 2003 doesn't use the ASPNET account.
 
Ahh... After all that troubleshooting.

Well now I have to ask - why not? What's the advantage of using the IUSR_MACHINENAME account? And why, then, is the ASPNET account even created?
 
This <identity impersonate="false" /> needs to be True
Then add the IIS_WPG group to the directory that is storing the site.




____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top