mojoPortal Setup (Database error?)

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/22/2011 8:09:15 AM
Gravatar
Total Posts 6

mojoPortal Setup (Database error?)

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
The system cannot connect to the MSSQL database. Please check your connection string.

System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at mojoPortal.Data.DBPortal.DatabaseHelperGetConnectionError(String overrideConnectionInfo)

 

Using: mojoportal-2-3-6-5-mssql-net40-deploymentfiles

Application pool mode: Integrated

.NET Version: 4.0

Database type: MSSQL

4/22/2011 8:18:00 AM
Gravatar
Total Posts 18439

Re: mojoPortal Setup (Database error?)

The error is very clear, either your database connection string is incorrect or the database server is offline.

If you have a user.config file in the root you should check the connection string there, otherwise check in Web.config

Hope it helps,

Joe

4/22/2011 8:29:38 AM
Gravatar
Total Posts 6

Re: mojoPortal Setup (Database error?)

Solved it.

 

  <!--
  IMPORTANT:
  Note that changes made to this file are not automatically detected by the ASP.NET runtime
  It does detect changes to Web.config, so when you make a change in this file you need to touch Web.config (ie type a space in it and save it)
  to make it reload settings
  -->

  <add key="MSSQLConnectionString" value="server=IP,PORT;UID=USERNAME;PWD=PASSWORD;database=DBNAME" />

I had to fill in the IP,PORT and such.

Fixed ;)

4/22/2011 8:45:13 AM
Gravatar
Total Posts 18439

Re: mojoPortal Setup (Database error?)

Glad you got it working. You shouldn't need to specify the port unless your sql server is running on a non-standard port, ie only if the port is something other than the default 1433.

Best,

Joe

4/22/2011 9:46:28 AM
Gravatar
Total Posts 6

Re: mojoPortal Setup (Database error?)

Ah oke, my webhost did tell me to use a port and i did and it worked. :P


Also when i register and i make a mailbox on my website its control panel and i fill in noreply@email.com as a email, i won't get the confirmation email to use my new made account.

5/2/2011 8:25:25 AM
Gravatar
Total Posts 1

Re: mojoPortal Setup (Database error?)

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
The system cannot connect to the MSSQL database. Please check your connection string.

System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at mojoPortal.Data.DBPortal.DatabaseHelperGetConnectionError(String overrideConnectionInfo)

I got the same error but the problem is i use an mysql database how can i fixs this problem ?

Cheers

 

5/2/2011 8:36:20 AM
Gravatar
Total Posts 2239

Re: mojoPortal Setup (Database error?)

Hi,

Have you read the Using MySQL document?

You need to download the MySQL Data Layer zip file from codeplex.

HTH,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.