DevExpress and Web.config (and general question about Web.config usage)

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.
2/24/2015 2:58:33 AM
Gravatar
Total Posts 1

DevExpress and Web.config (and general question about Web.config usage)

Hello mojoPortal community,

I have started working with mojoPortal recently and now we are trying to use some DevExpress components in our custom features. Apparently it is required to add some lines to Web.config to register ASPxHttpHandlerModule https://documentation.devexpress.com/#AspNet/CustomDocument6769 . After doing this in the Web.config of the mojoPortal.Web project it works and I added a DexExpress button to my feature as test. But I do realize that changing things in the 'global' Web.config is not good as it will be overwritten when updating the source from Mercurial right?

So actually my question is how to properly deal with modifications in Web.config?

The webproject of our features also has a Web.config but if I understand correctly whenever I run the mojoPortal.Web project the Web.config in the feature project does nothing. My second question is what is the function of Web.config in projects outside mojoPortal.Web?

Thanks in advance.

 

2/24/2015 7:16:41 AM
Gravatar
Total Posts 18444

Re: DevExpress and Web.config (and general question about Web.config usage)

in production when upgrading you would need to keep a backup of your web.config file and restore customizations after upgrading.

for development you would need to do the same thing if updating from mercurial, you would discard local changes pull new changes and update then re-apply the local custom changes. there is no way around that.

best bet is only pull new changes if you know there are new changes that you want, ie you could keep an eye on our history page for new changes and update less frequently to reduce the work in changing the web.config

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