Cannot open user default database. Login failed. Login failed for user 'Machine/ASPNET'
来源:互联网 发布:vba与vb的值传递 编辑:程序博客网 时间:2024/05/21 11:16
question:
Having the same problem and have spent 2 frustrating days trying tofigure it out. Project runs from within VS.net OK -- because VS isauthenticating as [machine]/ASPNET -- but if I try to run ashttp://localhost/[application] I just get the "Cannot open user defaultdatabase..." error. I've created a [machine]/ASPNET user account in SQLServer Express, assigned it to sysadmin role, have set SQL Express torun in mixed-mode, but all to no avail.
the way to fix:
I had the same use and tried a whole bunch of things, but this is what solved it for me:
- it seems I had the DB still opened inside my IDE (Visual WebDeveloper Express), in the database explorer. Right-clicking thedatabase and selecting "close connection" fixed it.
Hope this helps.
- Cannot open user default database. Login failed. Login failed for user 'Machine/ASPNET'
- Cannot open database "WWALMDB" requested by the login.The login failed Login failed for user sa
- 關於Login failed for user '27RN43X\ASPNET'. 的錯誤記錄
- The Error "Login failed for user"
- MSSQL2005 报 Login failed for user 'sa'. 错误
- Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
- "Login failed for user 'sa'. Reason: The account is disabled.
- SSIS Hresult: 0x80040E4D Description: "Login failed for user 'sa'.
- [solve]Ubuntu login "Failed to add entry for user"
- Login failed for user 'IIS APPPOOL\DefaultAppPool'
- System.Data.SqlClient.SqlException: Login failed for user
- Cannot open database "db1" requested by the login. The login failed.
- Login failed for user 'username'. The user is not associated with a trusted SQL Server connection
- BAM部署视图失败 - OLE DB or ODBC error: Cannot open database "BAMStarSchema". login failed 42000.
- [ASP.NET2.0][aspnetdb_log.ldf]Login failed for user 'NT AUTHORITY/NETWORK SERVICE'
- Login failed for user 'Tester'. Reason: Not associated with a trusted SQL Server connection.
- Login failed for user ''.Reason:Not associated with a trusted SQL Server connection.
- Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
- (C#)两个DataTime类型数据比较大小
- 2009-09-03
- 名词单数变复数规则
- 首个基于Windows Azure的开源CMS发布
- 2009-09-04
- Cannot open user default database. Login failed. Login failed for user 'Machine/ASPNET'
- 原创 C#事务处理简明示例 收藏
- c#日期时间的操作
- 李开复辞职前后:拒绝谷歌史上最高数量股票
- Flash与ASP进行连接数据库操作
- 对汉王电纸书的发展建议
- flash进度条
- js中apply方法的使用
- flash加载图片,并旋转