I have Windows 7 Pro(x64), SQL Server 2008 developer edition, IIS 7.5 Trying to create a login for IIS APPPOOL\\ASP.NET v4.0 from SSMS->Security->Logins I am not getting the \"L
I haven't been able to completely replicate your issue on Server 2008 R2 with SQL Server 2008 since everything works okay in my environment per your instructions. I did have the same error when I had mistyped the name of my app pool in IIS but everything fell into place when the app pool name was corrected. I also was able to add the ASP.NET v4.0 identity as well.
I may be reaching a little here, but did you right-click and run SSMS as an administrator? This may not be an issue with UAC on Win 7 but can affect things on the Server versions of Windows. Also, you might try to see if you have the same problem when modifying an NTFS ACL. You should be able to add the app pool identity in an NTFS ACL using the same IIS APPPOOL\ASP.NET v4.0 name as in SQL Server. If you get different behavior, it might have something to do with SQL Server. If not, then there might be a service that's not running on your Win 7 desktop that you need to resolve the app pool identity.
After changing the idenity in IIS to localsystem or localservice ....i was not able to run the program i got again the same code.
After a long research i found the solution:
Thats all now run you website and see
it might help you
Thank you Happy Coding
Do not search for the user account. Type the user name directly into the "Login name" box of the New Login dialog. The format is "IIS AppPool\{poolname}".
If you use the Search feature, the search will resolve IIS AppPool\{poolname} and return COMPUTER\{poolname} to the New Login dialog. COMPUTER\{poolname} doesn't exist, but IIS AppPool\{poolname} does.
Just type it in.
Fire up IIS = RUN -> INETMGR -> ENTER
Choose the ASP.NET v4.0 application pool from the Applications Pools item in the tree view on the left
Choose advanced settings
Under the Process Model section change the Identity value to NetworkService.
Important : Should alway use DefaultAppPoolIdentity for production environments
To fix this issue, try changing the (Process Model) Identity of your website's Application Pool to use the NetworkService account (or the less secure LocalSystem account). By default, IIS7 seems to set the Application Pools Identity to 'ApplicationPoolIdentity', instead of NetworkService or LocalSystem.
You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings
Under ApplicationPoolIdentity you will find local system. This will make your application run under NT AUTHORITY\SYSTEM, which is an existing login for the database by default.