The project compiles to the Umbraco\bin directory already, yet the instructions say "After compiling the project and dropping the assembly in the bin directory of your umbraco instance the code should sync with Contour and a new form will appear"
However, this hasn't happened. I'm sure I'm missing something silly here. Please could someone point me in the right direction? I've tried republishing, IISreset and refreshing nodes in the Contour module.
I added this without comments to my dev instance and recompiled, but still Contour won't sync up. There are no other instances of 'contour' in either web.config.
Contour not picking up form created by Code First
Hi,
I'm using Contour 3.0.24-Build.31 with Umbraco 7.1.7.
I've followed instructions from https://our.umbraco.org/projects/umbraco-pro/contour/documentation/developer/Code-first/ to add a .cs file to Models.Umbraco.dll.
The project compiles to the Umbraco\bin directory already, yet the instructions say "After compiling the project and dropping the assembly in the bin directory of your umbraco instance the code should sync with Contour and a new form will appear"
However, this hasn't happened. I'm sure I'm missing something silly here. Please could someone point me in the right direction? I've tried republishing, IISreset and refreshing nodes in the Contour module.
Thanks,
Bob
Comment author was deleted
Yeah it should just do the trick, can you check if you web.config has any contour entries?
Thanks for getting back to me.
I saw that the staging environment had the following commented out:
<add name="ContourFormBuilderHttpModule" type="Umbraco.Forms.CodeFirst.ContourFormBuilderHttpModule, Umbraco.Forms.CodeFirst" />
I added this without comments to my dev instance and recompiled, but still Contour won't sync up. There are no other instances of 'contour' in either web.config.
Comment author was deleted
there should be 2 entries related to contour for the code first to work
FIrst is in the httpmodules
<add name="ContourFormBuilderHttpModule" type="Umbraco.Forms.CodeFirst.ContourFormBuilderHttpModule, Umbraco.Forms.CodeFirst" />
second is in system.webserver/modules
<add name="ContourFormBuilderHttpModule" type="Umbraco.Forms.CodeFirst.ContourFormBuilderHttpModule, Umbraco.Forms.CodeFirst" />
is working on a reply...