Copied to clipboard

Flag this post as spam?

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


  • Chris 92 posts 238 karma points
    Jan 12, 2015 @ 13:33
    Chris
    0

    Form loads correctly, but error message appears

    Hey

    I have another problem with the new forms. I created a contact-form with a e-Mail notification and it works fine. Still I get the following error message displayed:

    Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)     

    Anyone got a solution for that?

     

    Also the entry in my log:

    2015-01-12 13:27:44,794 [29] WARN  umbraco.macro - [Thread 35] Error loading Partial View (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml). Exception: System.FormatException: Unrecognized Guid format.
       at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
       at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
       at System.Guid..ctor(String g)
       at ASP._Page_Views_MacroPartials_InsertUmbracoForm_cshtml.Execute() in c:\~~~\Views\MacroPartials\InsertUmbracoForm.cshtml:line 8
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
       at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult)
       at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content)
       at umbraco.macro.LoadPartialViewMacro(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

  • Adam Henriksen 1 post 21 karma points
    Jan 30, 2015 @ 18:14
    Adam Henriksen
    0

    I have the same issue. Did you get it resolved?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 31, 2015 @ 10:16
    Jan Skovgaard
    0

    Hi guys

    Which versions of Umbraco and Forms are you running?

    /Jan

  • Ahsinah 18 posts 71 karma points
    Mar 20, 2015 @ 14:33
    Ahsinah
    0

    Hi,

    I am also getting the same issue. Anyone managed to solve it?

    I am running Umbraco 7.2.1

    Regards, Ahsinah

  • Mike Donahue 1 post 21 karma points
    May 13, 2015 @ 16:14
    Mike Donahue
    0

    I have the same error message, but a different log entry.

    Im running Umbraco version 7.2.4 assembly: 1.0.5557.19139

    The form shows up, but when I hit submit I get "Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)"

    And the log entry shows:

    2015-05-13 10:08:37,822 [15] WARN  umbraco.macro - [Thread 62] Error loading Partial View (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml). Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
       at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
       at System.Web.Mvc.ModelStateDictionary.Merge(ModelStateDictionary dictionary)
       at Umbraco.Web.Mvc.ControllerExtensions.EnsureViewObjectDataOnResult(ControllerBase controller, ViewResultBase result)
       at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult)  
       at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content) 
       at umbraco.macro.LoadPartialViewMacro(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

  • Ahsinah 18 posts 71 karma points
    May 14, 2015 @ 07:33
    Ahsinah
    0

    Hi,

    Removing the captcha in my case (temporarily) solved the issue.

    Hope this helps.

    Ahsinah

  • Pradeep 8 posts 76 karma points
    Feb 23, 2017 @ 04:54
    Pradeep
    0

    can you please let me know in detail about this

  • alex 6 posts 38 karma points
    May 21, 2015 @ 11:29
    alex
    0

    Hi,

    Same issue, but I dont have any captcha in the form :(

    Any other suggestion?


    Thanks

  • alex 6 posts 38 karma points
    May 21, 2015 @ 12:22
    alex
    2

    Resolved!

    I had to add:

    <add assembly="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    

    in web.config

    Thanks

  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Aug 13, 2015 @ 13:41
    Tom Madden
    0

    Just had this issue with a recent 7.2.8 install and fortunately found this quickly and it saved me tons of time.

    Many thanks

    t

  • Jakob Dyrby 3 posts 33 karma points
    Sep 24, 2015 @ 19:11
    Jakob Dyrby
    0

    I'm using umbraco 7.2.8 and Umbraco forms 4.1.4

    I have added a comment to this issue:

    http://issues.umbraco.org/issue/CON-814#comment=67-23065

    Does anybody have an idea of what I can try?

    Thanks Jakob

  • Nathan Sleigh 109 posts 353 karma points
    Oct 05, 2015 @ 14:00
    Nathan Sleigh
    0

    Has anyone found a solution to this problem yet?, I'm using Umbraco 7.3.0 and Form 4.1.4?

    Nathan

  • Reda EL fillali 2 posts 72 karma points
    Oct 08, 2015 @ 07:43
    Reda EL fillali
    0

    the same here

  • René Pjengaard 118 posts 702 karma points c-trib
    Oct 29, 2015 @ 10:55
    René Pjengaard
    0

    I have the same problem. Not even Alex´s solution worked for me. Anyone found a solution / explanation for this?

  • Ryan 9 posts 30 karma points
    Mar 04, 2016 @ 17:40
    Ryan
    0

    Same problem here. It only happens when I fill in the date picker. Adding System.Net.Http.Formatting didn't help.

  • Ryan 9 posts 30 karma points
    Mar 04, 2016 @ 18:09
    Ryan
    0

    Just remembered that I had a datepicker issue also with 4.1.4 and this is the fix that support sent me. I figured they'd include it in 4.1.5 but I guess not. This is \Views\Partials\Forms\Fieldtypes\FieldType.DatePicker.cshtml. Notice the try catch around casting. This solved my problem with 4.1.5.

    @model Umbraco.Forms.Mvc.Models.FieldViewModel
    @{
        string val = string.Empty;
        if (Model.ValueAsObject != null && Model.ValueAsObject != "")
        {
            try
            {
                DateTime d;
                d = (DateTime)Model.ValueAsObject;
                val = d.ToShortDateString();
            }
            catch (Exception ex)
            {
                val = Model.ValueAsObject.ToString();
            }
        }
    }
    <input type="text" name="@Model.Name" id="@Model.Id" class="datepickerfield" value="@val"
           @{if (Model.Mandatory) { <text> data-val="true" data-val-required="@Model.RequiredErrorMessage" </text> }} />
    
  • Anton Oosthuizen 206 posts 486 karma points
    Feb 01, 2017 @ 11:34
    Anton Oosthuizen
    0

    Hi

    Adding the following did it for me

     <add assembly="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    
  • Pradeep 8 posts 76 karma points
    Feb 15, 2017 @ 14:28
    Pradeep
    0

    Tried doing examine index didnt work. please suggest on this

Please Sign in or register to post replies

Write your reply to:

Draft