Problem with the ASP.NET 2.0 menu control and MCMS


A couple of customers reported problems when using the menu control with ASP.NET 2.0 and MCMS.


After analyzing one of the affected projects I identified that the reason for the problem is that the menu control seems to have a bug. It does not work correct if the following tag is included in the web.config:


      <xhtmlConformance mode=”Legacy”/>


Removing this tag resolved the problem for MCMS template projects and also for normal ASP.NET webform projects.

Comments (9)

  1. Anonymous says:

    I have posted a solution for this problem in a subsection of this article but someone who is just looking

  2. subhash says:

    Hi,

    i’ve a unique problem with the menu controll.

    Our menu is driven by the setting/access for that user from the database. the menu gets added dynamically with the items.

    this works fine in our development environment, when i move the same with public website to staging server, the menu control acts funny, which every link we click it goes to the landing page of the first menu.

    our staging server is setup as website with window 2003 OS

    can you let me know why is this and how to get it resolved.

    thanks

    Subhash M

  3. Stefan Goßner says:

    Hi Subhash,

    if the menu control is populated from a database then it sound more like an ASP.NET problem than a MCMS issue.

    Maybe a different database is connected on the staging server?

    Or the database cannot be properly accessed?

    Cheers,

    Stefan

  4. Jorge Lopes says:

    Thank You!

    Add a problem with the Menu control and after checking the webConfig file it had this line! I commented the line and no more problems with the Menu control 🙂

    I don’t think my problem was a MCMS related.

    Thank You!

  5. Stefan Plattner says:

    Thank you very much. That hint saved my day!

    Stefan

  6. John says:

    Thanks, this was a big help!!!

  7. Saša Dragičević says:

    Thanks so much. I’ve lost hours and hours trying to find out why menu control changes appearance when application is started.