参见:
[1] http://www.cnblogs.com/yjmyzz/archive/2009/10/26/1590033.html
[2] http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-2-instance-ownership.aspx
[3] http://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0
在当前 LocalDB 数据库执行下面的代码:
create login [NT AUTHORITY\SYSTEM] from windows; exec sp_addsrvrolemember N'NT AUTHORITY\SYSTEM', sysadmin -- NT AUTHORITY\SYSTEM 这块内容根据实际情况修改即可。