Connection strings in web.config

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.
12/18/2006 2:13:51 AM
Gravatar
Total Posts 488

Re: Connection strings in web.config

In web.config there are 2 connection strings for some of supported database types (for example, MSSQLConnectionString and mojoProjectMSSQLConnectionString).
As far as I can see, the second one is never used. Are they needed for something or should be removed?
12/18/2006 4:03:20 AM
Gravatar
Total Posts 18439

Re: Connection strings in web.config

mojoPorojectConnectionString is for a feature under development. I will add a comment to web.config to make this clear.

Thanks,

Joe
12/18/2006 4:15:39 AM
Gravatar
Total Posts 488

Re: Connection strings in web.config

Joe, and why not using ConnectionStrings section of web.config for that perpose?
12/18/2006 4:34:41 AM
Gravatar
Total Posts 18439

Re: Connection strings in web.config

Well, I did that at one point right after 2.0 .NET came out but it makes it difficult in team development using svn if every time you update you have a conflict because you have modified the connection string. Unfortunately the ConnectionString section doesn't have the option to use an external file like user.config so in the end I see an advantage of using a regular config setting and no advantage in using the connectionstring section.

Joe
12/18/2006 4:43:49 AM
Gravatar
Total Posts 488

Re: Connection strings in web.config

This section does have a configSource property, as all the sections do.

http://msdn2.microsoft.com/en-us/library/ms228167(VS.80).aspx

But it does not support merging - you can only move an entire section into separate file.

P.S. Anyway, as you implement the profile section it would be nice also to exclude it from web.config for the same reason.
12/18/2006 4:56:18 AM
Gravatar
Total Posts 18439

Re: Connection strings in web.config

Thanks for the link and good idea for the profile section I hadn't thought of that but you are right it will be awkward working from svn if your custom profile properties cause a conflict. Keeping them in a separate file will help. In most cases they should merge ok but I think there is still some potential for merge conflicts but this approach is probably the best we can do.

I'm actually about to get back to working on the profile stuff. I'll let you know when its complete and you can help with testing and feedback.

Thanks,

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