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.
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.
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.
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
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?
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
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
is working on a reply...