本文介绍了我成功地将我的asp.net网站发布到localhost但是我在访问数据库时遇到了问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的asp.net网站成功发布到localhost,我可以正常打开页面,但是我无法访问数据库我遇到以下异常,



System.Data.SqlClient.SqlException(0x80131904):无法打开登录请求的数据库ltest。登录失败。用户'NT AUTHORITY \SYSTEM'登录失败。

解决方案

I publish my asp.net website to localhost successfully, I can open the pages normally, but I have no access to the database I catch the following exception,

System.Data.SqlClient.SqlException (0x80131904): Cannot open database "ltest" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM'.

解决方案


这篇关于我成功地将我的asp.net网站发布到localhost但是我在访问数据库时遇到了问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 07:40