Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    Apr 04, 2014 @ 06:54
    Moran
    0

    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 '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.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 04, 2014 @ 08:48
    Jan Skovgaard
    0

    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

  • Moran 285 posts 934 karma points
    Apr 04, 2014 @ 11:06
    Moran
    0

    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):

    @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. 

     

  • Sebastiaan Janssen 5058 posts 15520 karma points MVP admin hq
    Apr 04, 2014 @ 11:36
    Sebastiaan Janssen
    100

    We're investigating this: http://issues.umbraco.org/issue/U4-4604

  • Moran 285 posts 934 karma points
    Apr 04, 2014 @ 14:35
    Moran
    0

    Thanks 

  • Moran 285 posts 934 karma points
    Apr 04, 2014 @ 15:31
    Moran
    0

    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:

     public ActionResult Index()
            {
                return PartialView("ContactForm", new ContactViewModel());
            }

    this is the file name in the partials view folder : "ContactForm.cshtml"

Please Sign in or register to post replies

Write your reply to:

Draft