Web.config ConnectionStrings section

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.
3/9/2011 6:13:16 PM
Gravatar
Total Posts 6

Web.config ConnectionStrings section

Would it be possible to uncomment the connectionstrings section in the web.config and change it to the following?

  <connectionStrings configSource="userConnectionStrings.config" />

 

This would allow users to configure connection strings in a separate file and allow custom modules to leverage the enterprise library data block.  Without the connectionstrings section the enterprise library data block will not work.

3/11/2011 6:32:12 AM
Gravatar
Total Posts 18439

Re: Web.config ConnectionStrings section

Hi Michael,

I believe there is no benefit for us to do that. If we make that change then I think it will cause an error if the file is missing so we would need to ship that file in the mojoportal packages and then it would overwrite the existing file during upgrades which means people have to maintain customizations in 2 files instead of just one.

It seems better if you put your custom connection string in an external file but you edit the web.config after each upgrade to point to your file.

It would be nice if all the sections worked like the appSettings section but they don't. The appSettings section allows you to specify an external file but it also allows you to set default directly within web.config and it will cause no error if the user.config file does not exist, bu tif it does exist it will override settings from web.config.

Best,

Joe

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