The entry 'MSSQLConnectionString' has already been added.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/25/2006 1:54:18 PM
Gravatar
Total Posts 11

The entry 'MSSQLConnectionString' has already been added.

I've tried checking out the 2.1 version using tourtoise and I keep getting the above error, when I configure for MySQL and delete the other connection strings I get this error but for the MySQL connect string.  I've found a work round which is to rename this and the calling config line but there must be something I'm doing wrong....

thanks
9/25/2006 2:16:48 PM
Gravatar
Total Posts 18439

Re: The entry 'MSSQLConnectionString' has already been added.

Sorry, I need to update the Tortoise page, you should get version 2.1.3 from svn not 2.1

You don't need to delete anything from the web.config, each data layer has its own named connection string and they don't interfere with one another.

To use MySQL, you branch down the References under the mojoPortal.Business project, delete the reference to MSSQLData, the right click the References node and choose Add Reference, in the dialog, click the Projects tab then choose MySQLData (not MySql.Data)



Set your connection string using the MySqlConnectionString in web.config
Actually the best thing if working from svn is to set your connection string in a file named user.config which is not under source control, this setting will override web.config and make it easy for you to do svn Update to get latest code without conflict. There is a template for this file at the root of the web project named user.config.sample, since this file is under source control you should open it in a text editor and save as user.config leaving the user.config.sample file as is. Set your connection string there using the MySqlConnectionString entry.

Build the solution and you're good to go working with MySQL

I think I have most of this covered in the in the ReadMe.VisualStidio2005.txt file but I'll add more documentation for developers here on the site soon.

Do delete the files you've downloaded and get 2.1.3

Hope it helps,

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