首页 新闻 会员 周边

关于asp.net程序服务器连接超时

0
悬赏园豆:5 [已解决问题] 解决于 2016-07-05 09:56

今天上网站发现提示服务器连接超时,然后我去服务器看了一下,没问题啊.我在本地写了一个测试程序,也就是简单的增删改查,确实可以连上服务器上的数据库.我重启了一下服务器,发现还是不行.提示如下:

Server Error in '/' Application.

用户 'sa' 登录失败。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

请问是什么原因?怎么解决

JaneEyreWork的主页 JaneEyreWork | 初学一级 | 园豆:11
提问于:2016-06-19 21:45
< >
分享
最佳答案
0

仔细查看数据库连接字符串,看看标点符号或者密码是否错误!  也可以用你配置sa的密码,用SQL Server Management Studio看是否能够登录。

收获园豆:5
编程老男孩 | 菜鸟二级 |园豆:207 | 2016-06-20 14:14
其他回答(2)
0

这不是说的很清楚吗...不知道你要问什么?

吴瑞祥 | 园豆:29449 (高人七级) | 2016-06-19 22:17

怎么解决

支持(0) 反对(0) JaneEyreWork | 园豆:11 (初学一级) | 2016-06-19 22:48
0

数据库连接字符串中的sa账户密码不对

dudu | 园豆:30994 (高人七级) | 2016-06-20 08:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册