Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Help With Error!!!!!!Help With Error!!!!!!
Previous
 
Next
New Post
2/7/2008 7:28 PM
 

I have this error coming up.

 

How do I fix it?  I need this sorted asap all help is appreciated!

 

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

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): 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)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +737554
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +114
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +57
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +27

[ADOException: cannot open connection]
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +81
   NHibernate.Impl.ConnectionManager.GetConnection() +35
   NHibernate.Impl.SessionImpl.get_Connection() +12
   NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel) +149
   NHibernate.Transaction.AdoTransaction.Begin() +8
   NHibernate.Impl.SessionImpl.BeginTransaction() +31
   AliSuite.Core.NHibernateSessionManager.BeginTransaction() +40
   AliSuite.Commerce.HttpModules.NHibernateSessionModule.x938f492861ea62cd(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc) +15
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Server Error in '/DNN' 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

 

 
New Post
2/7/2008 9:46 PM
 

DotNetNuke isn't connecting to the SQL Server.

Check the connection strings (both of them) in web.config.

 

If this is a new installation, you should try running the Wizard and use the link to test your connection.  If not, see if you can connect to the SQL Server with something like SQL Server Management Studio.  Record all of the details if you are successful and transfer that information into we.config.




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
2/7/2008 11:50 PM
 

Sounds more to me like a problem on the SQL Server side - look for something called "surface connections" (I think), that deals with allowing remote connections to the database.


Eric Swanzey
www.swanzey.com
 
New Post
2/17/2008 12:50 PM
 

My wife is running a DNN site with the AliCommerce shopping cart (as I see you are too).  After applying an upgrade, she had this error also. 
As a dnn developer, I dug in to try and help her out and what I found was a config file under DesktopModules/AliCommerce/config/nhibernate.config.

In this config file, I changed the line below and her site started working again.

 

<!--
    <property name="connection.connection_string">Server=NETSERVER\SQL2005DEV;Database=DNNDevEnvironment;uid=DNNDevEnvironment_Admin;pwd=DNNDevEnvironment_Admin;</property>
-->
    <property name="connection.connection_string">Server=<your sql server>;Database=<your sql db>;uid=<your userid>;pwd=<your password>;</property>

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Help With Error!!!!!!Help With Error!!!!!!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out