Problems installing @ discountasp.net

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.
8/23/2008 7:16:46 AM
Gravatar
Total Posts 4

Problems installing @ discountasp.net

Hi,

I want to install mojoPortal on my discountasp.net account but for some reason I keep getting this error message:

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

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) 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 have no idea what to do.

After following the instructions I can only assume that a typo got into the web.config .

Yet when I checked it it was ok. I'm new to IIS so any help would be greatly appreciated.

Lawrence

8/23/2008 7:22:47 AM
Gravatar
Total Posts 18439

Re: Problems installing @ discountasp.net

Hi,

The error is clear, it cannot talk to your MS SQL database. Did you create a database using your hosting control panel?

You need to edit your connection string in Web.config (or ideally in user.config as discussed here)

<add key="MSSQLConnectionString" value="server=servername;UID=dbusername;PWD=dbuserpassword;database=databasenamel" />

You will have to get the server name and database name and user name and password from data in your hosting control panel

Hope it helps,

Joe

8/23/2008 7:40:38 AM
Gravatar
Total Posts 4

Re: Problems installing @ discountasp.net

Hi Joe,

Thanks for your lightening reply (do you sleep?).

As I said, I have the correct connection string in the web.config file that's why I find this error perplexing.

 

Could it be that the permissions are wrong?

Lawrence

8/23/2008 7:42:22 AM
Gravatar
Total Posts 18439

Re: Problems installing @ discountasp.net

Hi,

No, I'm sure you think you have the correct connection string but you in fact do not.

Hope it helps,

Joe

8/23/2008 8:14:58 AM
Gravatar
Total Posts 4

Re: Problems installing @ discountasp.net

Joe,

This is .

But in case others make the same mistake - here's the problem:

In the web.config file the line to edit looks like this: <add key="MSSQLConnectionString" value="server=(server);UID=user;PWD=''''';database=databaseName" />
I FORGOT to delete the ().

Thanks Joe and enjoy the beer.

Cheers!

Lawrence

 

8/23/2008 8:23:54 AM
Gravatar
Total Posts 18439

Re: Problems installing @ discountasp.net

Hi Lawrence,

Thanks a lot for the beer! I shall raise my glass to you this evening!

I will remove the () from the default connection string in Web.config so in future releases this won't confuse anyone.

Best,

Joe

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