I upgraded my site from version 7.0.4 to version 7.1.0 and I came accross tte following issue: after the installation it can't see to find my partial view "ContactForm.cshtml". by the error message I see that, for some reason, it doesn't even look in the right place.
The error:
The partial view 'ContactForm' was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/ContactFormSurface/ContactForm.aspx ~/Views/ContactFormSurface/ContactForm.ascx ~/Views/Shared/ContactForm.aspx ~/Views/Shared/ContactForm.ascx ~/Views/ContactFormSurface/ContactForm.cshtml ~/Views/ContactFormSurface/ContactForm.vbhtml ~/Views/Shared/ContactForm.cshtml ~/Views/Shared/ContactForm.vbhtml
the partial view exists in View/Partials but for some reason it does'nt even look there.
Have you checked that the file and macro still exists? Perhaps it got lost during the upgrade for some weird reason? How did you do the upgrade? Using Nuget or manually?
Have you tried clearing the cache by setting the web.config to run in debug mode and running your website with the web inspector tool opened (If using chrome?).
Thanks for the fast reply, this isn't a macro, only a simple form using surface controller. this is the call for the contact form (I can attached the rest of the code if you want):
@Html.Action("Index", "ContactFormSurface")
I did the upgrade using nuget.
Tried to clear the cache in debug mode but still nothing, it won't search the "Partials" folder.
Contact form partial not found
I upgraded my site from version 7.0.4 to version 7.1.0 and I came accross tte following issue: after the installation it can't see to find my partial view "ContactForm.cshtml". by the error message I see that, for some reason, it doesn't even look in the right place.
The error:
the partial view exists in View/Partials but for some reason it does'nt even look there.
Hi Moran
Is that the only macro that does not work?
Have you checked that the file and macro still exists? Perhaps it got lost during the upgrade for some weird reason? How did you do the upgrade? Using Nuget or manually?
Have you tried clearing the cache by setting the web.config to run in debug mode and running your website with the web inspector tool opened (If using chrome?).
/Jan
Hi
Thanks for the fast reply, this isn't a macro, only a simple form using surface controller. this is the call for the contact form (I can attached the rest of the code if you want):
I did the upgrade using nuget.
Tried to clear the cache in debug mode but still nothing, it won't search the "Partials" folder.
We're investigating this: http://issues.umbraco.org/issue/U4-4604
Thanks
This happeneds even if start for screach I am using umbraco 7.1.0.
this is how I call the view from the Index method in the controller:
this is the file name in the partials view folder : "ContactForm.cshtml"
is working on a reply...