Er. alokpandey's Blog

The login failed. Login failed for user ‘IIS APPPOOL\DefaultAppPool’ on IIS 7.0/7.5

Posted in ASP.NET (C# & VB) by Alok Kumar Pandey on January 21, 2012

The login failed. Login failed for user ‘IIS APPPOOL\DefaultAppPool’ on IIS 7.0/7.5

You are trying to jump start an existing ASP.NET site on a new IIS 7.5 server under Windows 7/7.5 or under Windows 2008 R2, and you are getting this error message: The problem is in IIS 7.5 DefaultAppPool settings.

Windows 2008 Server with IIS 7.0/7.5 runs DefaultAppPool using Network Service user:

Windows 7.0/7.5 and Windows 2008 Server R2 with IIS 7.5 run the same pool under a different user – ApplicationPoolIdentity:

All you need to do is to change that setting on your machine.

Use IIS Admin – Application Pools.
1- Right mouse click on DefaultAppPool row,
2- Select Advanced Settings,
3- A first setting under Process Model group is Identity,
4- Select it and using a drop down list change Built-in account from ApplicationPoolIdentity to NetworkService.

Now check your application log in, it will work

Hope this will work

Advertisement

One Response

Subscribe to comments with RSS.

  1. Mils†ein® (@milson) said, on January 21, 2012 at 9:33 am

    Nice Article and its Time saver to lots of Developer who face this problem in Windows 7 Platform :)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.