It works perfectly on my local development machine (I'm working from code in Visual Studio).
But after I upload it to a shared host online the controller no longer gets called when the form is submitted. The page simply reloads and nothing happens.
I tested this by breaking the controller code online, it caused no errors. Also added code to add entries to the error log, again worked locally not online.
It seems the routing to standard .NET MVC controllers no longer works after being put on the shared host.
Custom controller code not called on shared host.
Hi,
I've created a custom contact form according to the following tutorial:
https://our.umbraco.org/documentation/getting-started/Code/Creating-Forms/
It works perfectly on my local development machine (I'm working from code in Visual Studio).
But after I upload it to a shared host online the controller no longer gets called when the form is submitted. The page simply reloads and nothing happens.
I tested this by breaking the controller code online, it caused no errors. Also added code to add entries to the error log, again worked locally not online.
It seems the routing to standard .NET MVC controllers no longer works after being put on the shared host.
Anyone have any ideas why this might be the case?
Cheers, Styrmir.
is working on a reply...