诡异的数据库连接问题
小弟参加一个人网页设计比赛,采用SQL Server2005+asp.net2.0。在自己的环境上运行没有问题,临时演示的时候问朋友借了个笔记本,重新安装系统和环境,然后通过分离-附加的方式把数据库移植到笔记本上,然后将.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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
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: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
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.
请问这是哪里的问题呢?
PS:企业管理器的设置和本机上完全一样。数据库连接字符串也没问题。