Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian Mckay 3 posts 23 karma points
    May 07, 2011 @ 13:16
    Ian Mckay
    0

    ascx files won't run in Umbraco 4.7 installation

    Hi all,

    We have moved an existing Umbraco site from 3.0.3 to 4.7 and have managed to get the sites up and running.

    The final issue we have is that two of the sites will not run .ascx files. These were files that were created as part of the original 3.0.3 installation.

    ----------------

    Links to page:

    http://salts.foundryweb.co.uk/contact-us.aspx

    This is a simple contact form.

    ---

    The original 3.0.3 installation and page can be viewd at:

    http://www.salts.co.uk/contact-us.aspx

    -----------------

    The file is located in /usercontrols/ContactForm.ascx

    The ascx file seems is a contact form  which is loaded into the main contact-us.aspx page

    Can anybody help or give me any suggestions as to what may cause this.

    Do we need to recreate the ascx file to run under 4.7?

    thx

    Ian Mckay

  • Lennart Stoop 304 posts 842 karma points
    May 07, 2011 @ 13:55
    Lennart Stoop
    0

    Hi Ian,

    If you look at the stacktrace (http://salts.foundryweb.co.uk/contact-us.aspx?umbdebugshowtrace=true) you can see the usercontrol is throwing an error:

    Error creating usercontrol (/usercontrols/ContactForm.ascx)
    The ID 'RequiredName' is already used by another control.

    It looks like the control is being loaded twice, is it possible you have 2 macro's on the page?

  • Ian Mckay 3 posts 23 karma points
    May 07, 2011 @ 22:06
    Ian Mckay
    0

    Thanks Lennart,

    I have viewed the tracestack and seen the error message. Not sure why this happening. We have inherited this site from another development agency and its our first use of Umbraco.

    Could you give me any pointers on where to look to see if we have two macros on the page.

    thx

    Ian

  • Pasang Tamang 258 posts 458 karma points
    May 08, 2011 @ 04:08
    Pasang Tamang
    0

    Hi Ian

    You can check the macros in your template in settings section and if you want to check which macro is using the usercontrol then check the list of macros in developer section. And one more suggestion I'm not sure about dotnet framework in umbraco 3.0.3 but  umbraco 4.7 is dependent on dotnet framework 4, so check either your contact form is dotnet framework 4 compatible or not.

    Thanks

    Pnima

Please Sign in or register to post replies

Write your reply to:

Draft