Installing on Godaddy Windows Hosted Environment

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.
5/23/2012 5:01:32 PM
Gravatar
Total Posts 37

Installing on Godaddy Windows Hosted Environment

Hey,

We created a site at work with MojoPortal and I love it.  I decided to setup my own site with MojoPortal recently so I purchased a domain and a Windows hosting account from Godaddy to get started.  I got everything up on the server, permissions set, and user.config and web.config files going.  I created an MSSQL and a MySQL database (I created both because I couldn't get MSSQL to work without the error below, so thought i'd try MySQL too).  I added the MySQL connection string and eventually kicked off the site setup page.  I keep getting this error with my connection string.  I'm assuming I have something wrong in my string and hope someone can help.  I appreciate it!

Here is my connection string in the user.config, web.config, and web.fulltrust.config (did it in all three just in case):

<add key="MySqlConnectionString" value="Server=tylerc82588dm.db.9389099.hostedresource.com;Database=mojoportal;Uid=tylerc82588dm;Pwd=(my password removed for privacy;" />

This is the error i'm getting:

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)

This site appears to be running in a secured environment using Medium Trust policy or at least lower than Full Trust.

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.

 

 

5/23/2012 10:23:55 PM
Gravatar
Total Posts 8

Re: Installing on Godaddy Windows Hosted Environment

Make sure that your database on godaddy, allows remote connections. Then try connecting to your MSSQL DB using your credentials through MS Management Studio. If it connects then try running your site. If you still get the error we'll look at other things.

5/24/2012 6:16:55 AM
Gravatar
Total Posts 18439

Re: Installing on Godaddy Windows Hosted Environment

What you don't understand is that just using the MySqlConnectionString is not sufficient to use mojoPortal with MySql. It requires different data dlls in the /bin folder and different setup scripts for the database. The package you installed is configured for MS SQL.

My guess is it will be much easier on GoDaddy to use MS SQL, you may have trouble getting MySql working there, but if you weant to try please read the MySql documentation carefully. You need to download the MySql-Data-Layer package from our codeplex download page and copy the files into your installation.

But as I said, knowing what I know about GoDaddy things will most likely be easier if you stick with MS SQL.

Hope that helps,

Joe

5/24/2012 9:20:50 AM
Gravatar
Total Posts 37

Re: Installing on Godaddy Windows Hosted Environment

Thanks Vicerox and Joe,

After reading Vicerox's comments about remote connection and Joe's comments about MSSQL I created an MSSQL database instead of messing with the MySQL.  I selected the remote connection options, but still received the same error.  Finally in frustration, I deleted both databases from Godaddy and started over creating a fresh MSSQL database with remote connectivity options.  Upon inserting the connection string I was able to get the site to initialize!  I now have my MojoPortal site up and running!  I'm not sure what the issue was, but I'm assuming something went awry in the initial database creation, and upon re-creating the database, it was fixed.  I appreciate the help from both of you and will consider this case closed!  Thanks again!

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