Error creating control (usercontrols/contact.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive,
which is not allowed! See the tracestack for more information!
Just renaming the .aspx page into .ascx doesn't solve the problem you have to create a asp.net usercontrol. And this type of error mostly comes when assembly (dll) files referenced by the controls are missing in umbraco bin directory.
Using contact form in Umbraco
I have a contact form in an existing site and am moving the entire site to Umbraco. My contact form is at contact.aspx with code file contact.aspx.cs
How do I attach the aspx.cs form to the contact page in umbraco? (4.5.x).
Hope this makes sense.
Chris.
Hi! I'd recommend you to convert the aspx to an ascx, which you can use from an Umbraco maco. http://msdn.microsoft.com/en-us/library/2x6sx01c.aspx
Hth
Jonas
Thanks for the speedy reply. I am almost there. So, I have renamed the page contact.ascx and contact.ascx.cs.
I have change the Control Language but I don't know what to put for Inherits and where to put the files....
Chris.
So I get:
Error creating control (usercontrols/contact.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
Must be doing something wrong...
Just renaming the .aspx page into .ascx doesn't solve the problem you have to create a asp.net usercontrol. And this type of error mostly comes when assembly (dll) files referenced by the controls are missing in umbraco bin directory.
Pnima
I think that is correct. I am now following:
http://www.eyecatch.no/blog/my-first-umbraco-usercontrol---part-2-basic-functionality-test.aspx
However, when I build my project, I cannot locate the created dll......
Chris.
is working on a reply...