Extensionless URLs

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/17/2010 11:08:46 AM
Gravatar
Total Posts 156

Extensionless URLs

The following instructions page suggests page http://www.mojoportal.com/extensionless-urls.aspx suggests that  add a "runAllManagedModulesForAllRequests="true" on the modules element in web.config.  However, this change will be overwritten with the next repo update.  Shouldn't this be saved in user.config instead?

6/17/2010 11:12:56 AM
Gravatar
Total Posts 18439

Re: Extensionless URLs

It would be nice if that were possible but it is not. The only section we can override in user.config is <appSettings

What I do is copy anything I have customized form other sections into a comment block in user.config

<!---

custom stuff from web.config

-->

and then I at least have a separate record of what I have changed and a place to copy it from when I need to replace the Web.config with a new one and restore my custom settings.

Hope it helps,

Joe

6/17/2010 1:09:24 PM
Gravatar
Total Posts 156

Re: Extensionless URLs

Wouldn't it be easier to just keep everything in web.config, back it up, update source, run a diff on the newly added and current config and merge the changes?

6/17/2010 1:11:42 PM
Gravatar
Total Posts 2253

Re: Extensionless URLs

Hi,

It would be easier for some but a lot of people have no idea how to "run a diff". If you want to manage your web.config in this fashion, that is perfectly fine as the user.config really is just a convenience measure.

-Joe D.

6/17/2010 1:17:47 PM
Gravatar
Total Posts 18439

Re: Extensionless URLs

If that is easier for you go for it, it is easier for me with user.config and easier to support. I don't want to fool with diff tools when maintaining production sites, I only have a few customizations and I would rather restore them by hand and know they are done correctly.  

Also Web.config is under source control so those of us working from the repository prefer using user.config and do as little modification as possible to Web.config

Also providing support for mojoPortal on a daily basis, I think user.config is a much easier thing to explain, I can't go telling people they need to use diff tools to upgrade their site, it will be difficult to support.

Best,

Joe

6/17/2010 1:31:52 PM
Gravatar
Total Posts 156

Re: Extensionless URLs

Yes, I use source control and so far user.config has been very convenient.  It's just that we already have mail settings in the web.config and now extensionless URL.  I'm just wondering at which point it would be easier to just merge the changes.

6/17/2010 1:34:46 PM
Gravatar
Total Posts 18439

Re: Extensionless URLs

Well 2 or 3 settings adjusted by hand seems a lot easier than using a diff tool to me. The vast majority of customizations are going to be for appSettings and those can be set and forget in user.config.

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