错误信息:(供应商:共享内存提供程序,error:0 - 无过程是管道的另一端。) [英] Error message: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

查看:489
本文介绍了错误信息:(供应商:共享内存提供程序,error:0 - 无过程是管道的另一端。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署我的网站Windows Server 2003上。
我缺少的东西或什么是错的,从下面的错误信息,我该怎么改正呢?谢谢

我遇到的错误消息:


  

一个连接成功建立与服务器建立的,但随后在登录过程中出现了错误。 (提供程序:共享内存提供程序,error:0 - 无过程是管道的另一端。)
  说明:执行当前Web请求的执行过程中发生未处理的异常。请查看有关错误的详细信息的堆栈跟踪以及它起源于code。


  
  

异常详细信息:System.Data.SqlClient.SqlException:连接
  与服务器,但随后的错误成功建立
  在登录过程中发生的。 (提供程序:共享内存提供程序,
  错误:0 - 无过程是在管道的另一端)


  
  

源错误:


  
  

的执行过程中生成了未处理的异常
  当前Web请求。有关的起源和位置信息
  除了可以使用异常堆栈跟踪下面来识别。


  
  

堆栈跟踪:


  
  

[SQLEXCEPTION(0x80131904):连接成功建立
  与服务器,但随后在登录过程中发生了错误。
  (提供程序:共享内存提供程序,error:0 - 无过程是在
  管的另一端。)]结果
  System.Data.ProviderBase.DbConnectionPool.GetConnection(的DbConnection
  owningObject)1019结果
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(的DbConnection
  owningConnection)+108结果
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(的DbConnection
  outerConnection,DbConnectionFactory connectionFactory的)+126结果
  System.Data.SqlClient.SqlConnection.Open()+125结果
  NHibernate.Connection.DriverConnectionProvider.GetConnection()+104结果
  NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper。prepare()
  +15 NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(方言
  方言,IConnectionHelper connectionHelper)+89结果
  NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
  SessionFactory的)+ 80结果
  NHibernate.Impl.SessionFactoryImpl..ctor(CFG配置,IMapping
  映射,设置设置,事件监听器监听器)+599结果
  NHibernate.Cfg.Configuration.BuildSessionFactory()+104结果
  MyProject.API.Data.SessionManager..cctor()的
  C:\\开发\\ code \\ API \\ DATA \\ SessionManager.cs:27



解决方案

通常情况下,要解决这个,你去SQL Server配置管理器(SSCM)和:


  1. 确保共享内存协议启用

  2. 启用
  3. 确保命名管道协议

  4. 确保TCP / IP被启用,和S超前的命名管道中的设置

也许它可以帮助:<一href=\"http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/\">Could无法打开一个连接SQL Server的

I am trying to deploy my website on windows server 2003. Am i missing something or what is wrong from the following error message, how can I correct it? Thank

I am having the error message:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) 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: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

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.

Stack Trace:

[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1019
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +108
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
System.Data.SqlClient.SqlConnection.Open() +125
NHibernate.Connection.DriverConnectionProvider.GetConnection() +104
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() +15 NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) +89
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory sessionFactory) +80
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) +599
NHibernate.Cfg.Configuration.BuildSessionFactory() +104
MyProject.API.Data.SessionManager..cctor() in C:\Dev\Code\API\Data\SessionManager.cs:27

解决方案

Typically, to troubleshoot this, you go to SQL Server Configuration Manager (SSCM) and:

  1. ensure Shared Memory protocol is enabled
  2. ensure Named Pipes protocol is enabled
  3. ensure TCP/IP is enabled, and s ahead of the Named Pipes in the settings

Maybe it can help: Could not open a connection to SQL Server

这篇关于错误信息:(供应商:共享内存提供程序,error:0 - 无过程是管道的另一端。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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