中国开发网: 论坛: 程序员情感CBD: 贴子 602024
haitao
数据库无法连接?管道方式都会失败?重启也不行??
Server Error in '/' Application.
--------------------------------------------------------------------------------

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:


Line 38: static private void Application_Init()
Line 39: {
Line 40: AppHolder.Init( (NoxForumConfigurationSection)ConfigurationManager.GetSection( "NoxForumConfiguration" ) );
Line 41:
Line 42:


Source File: d:\zhaix\websites\cndev.org#www\App_Code\NoxHttpModule.cs Line: 40

Stack Trace:


[SqlException (0x80131904): 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)]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +454
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +104
System.Data.SqlClient.SqlConnection.Open() +177
Nox.Common.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +96
Nox.Common.Data.SqlDbProvider.ExecuteScalar(String sql, SqlParameter[] p) +43
NoxForum.Framework.AppHolder.LoadSettings() +111
NoxForum.Framework.AppHolder.Init(NoxForumConfigurationSection configSection) +482
NoxHttpModule.Application_Init() in d:\zhaix\websites\cndev.org#www\App_Code\NoxHttpModule.cs:40
NoxHttpModule.System.Web.IHttpModule.Init(HttpApplication context) in d:\zhaix\websites\cndev.org#www\App_Code\NoxHttpModule.cs:94
System.Web.HttpApplication.InitModulesCommon() +67
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1000
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +276
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +123
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +349




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
我的blog:http://szhaitao.blog.hexun.com & http://www.hoolee.com/user/haitao
--以上均为泛泛之谈--
不尽牛人滚滚来,无边硬伤纷纷现 人在江湖(出来的),哪能不挨刀(总归是要的)
网络对话,歧义纷生;你以为明白了对方的话,其实呢?

您所在的IP暂时不能使用低版本的QQ,请到:http://im.qq.com/下载安装最新版的QQ,感谢您对QQ的支持和使用

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录