获取尝试登录时,SQL连接错误 [英] Getting a sql connection error when trying to login

查看:117
本文介绍了获取尝试登录时,SQL连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个登录页面,在我的本地开发环境中工作。当我推到网站的Web服务器,我得到试图从asp.net登录控制登录时,这个错误。

I have a login page that works in my local development environment. When I push the site onto the web server, i am getting this error when trying to login from the asp.net login control.

在建立与服务器的连接时发生错误。当连接到SQL Server 2005,此故障可能的事实,默认设置下SQL Server不允许远程连接造成的。 (提供者:SQL网络接口,错误:26 - 错误定位指定的服务器/实例)

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)

我想不通为什么它不工作在服务器上。我需要在web.config中添加任何东西或者改变什么?

I cannot figure out why it does not work on the server. Do I need to add anything or change something in the web.config?

推荐答案

这种支持文章可以帮助。它也可以是一个防火墙问题或对新的设置的认证的问题(但是该错误消息使得该不太可能)。

This support article may help. It may also be a firewall issue or an authentication issue on the new setup (but the error message makes that less likely).

这篇关于获取尝试登录时,SQL连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆