Asp.net登录页面出错

来源:百度知道 编辑:UC知道 时间:2024/09/22 03:34:03
我在asp.net中绑定了数据,情况如下: 我的页面上有很多数据都来自数据库,能够正常显示。 但是登录就不正常(也是一个表),出现的错误如下:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
请高手指点,网上所说这是SQL远程权限问题,那我的其它绑定又正常,请高手指点???

我也碰到过几次,可以这样做:
1:可能是你的本地连接被禁了,重新打开即可;
2:把这个数据库删了,再重新“附加数据库”,应该就好了

好像是你远程数据库的用户权限问题...