46 thoughts on “Windows 7 How to: Login failed for user ‘IIS APPPOOL\DefaultAppPool’

  1. Thanks a mill, bee battling with this for awhile now. That link helped, even thou it ain’t english :)

    Thanks :)

  2. Pingback: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOLDefaultAppPool'. - שלמה גולדברג

  3. Did not work for me.

    Error: Cannot open database “MyDB.mdf” requested by the login. The login failed. Login failed for user ‘IIS APPPOOL\DefaultAppPool’.

    If I change the DefaultPool Identity to LocalSystem
    Error: Cannot open database “MYDB.mdf” requested by the login. The login failed. Login failed for user ‘NT AUTHORITY\SYSTEM’.

  4. thank u
    it really wrks
    please change the language so that it can be understood by all the viewers.

  5. when i try to open website in browser using IIS 7 in window 7 i faced the error loke “Login Feaild IIS APPPOOL/MyWebSite” and my database string pass in web reference dll so how can i solved it.
    please help me

  6. GENIUS! Thank you for the info… it saved me hours of wasting time trying to do it on my own.

  7. If you do it that way, you are not leveraging the new security features of IIS.

    I think the correct way to do this is to add an SQL login for IIS “APPPOOL\DefaultAppPool”.

    The reason MS stopped using NETWORK SERVICE or LOCAL SYSTEM is that there can be security issues between processes sharing the same account.

  8. Thanks!!!! I’ve been pulling my hair outfor the last 4 hours trying figure out what the heck was going on!!!!

  9. boss u r a STAR thanks a lot man i was struggling with this almost a day man u r a star

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">