Can't View Website I Made With MojoPortal

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
12/24/2011 10:55:29 AM
Gravatar
Total Posts 55

Can't View Website I Made With MojoPortal

I tried to view this website: http://www.parentjobnet.org today and I got the following message.

"Probing system...

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

System.Data.SqlClient.SqlException: 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)

Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config."

The thing is that the site was fine last night and everything was view-able. Is MojoPortal doing something or do I need to correct this?

12/24/2011 11:48:56 AM
Gravatar
Total Posts 18439

Re: Can't View Website I Made With MojoPortal

The error message is very clear. It means the database configured in your connection string in Web.config or user.config is not correct or the database server is not accessible from the web server.

mojoPortal doesn't change your connection string and it can't control whether your database server is accessible from the web server.

If it was working last night then either someone changed the conneciton string or something happended at your host and the database is no longer reachable. The first scenario is more likely, like if you uplaoded a copy of Web.config or user.config with an incorrect connection string.

See also the documentaiton about Using MS SQL and Moving an Installation of mojoPortal to a Different Server.

Hope that helps,

Joe

12/24/2011 12:15:51 PM
Gravatar
Total Posts 55

Re: Can't View Website I Made With MojoPortal

It's fixed now. I talked to my database person and he said that a cable was loose.

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