I recently upgraded Forms to the most recent version from 4.0.1 and received the following error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'Umbraco.Forms.Mvc.Models.FormViewModel' does not contain a definition for 'FieldsetConditions' and no extension method 'FieldsetConditions' accepting a first argument of type 'Umbraco.Forms.Mvc.Models.FormViewModel' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 6: @using Umbraco.Forms.Core.Extensions
Line 7:
Line 8: <input type="hidden" id="[email protected]" value='@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.FieldsetConditions))' />
Line 9: <input type="hidden" id="[email protected]" value='@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.FieldConditions))' />
Line 10: <input type="hidden" id="[email protected]" value="@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.Pages.SelectMany(p => p.Fieldsets).SelectMany(fs => fs.Containers).SelectMany(c => c.Fields).ToDictionary(f => f.Id, f => f.Value)))" />
Source File: c:\Projects\..\Views\Partials\Forms\Script.cshtml Line: 8
I've even gone so far as to take the nuclear option and fully reinstall Forms, however the issue still persists.
I'm investigating further now, but any insight would be appreciated.
Simply copying the files over didn't work; however manually clearing out the files and all project references, then copying over the files and adding the references did work.
Odd as "Clean Project" should have done most of that, but hey it worked!
Error after installing Forms 4.1.1
Hi all,
I recently upgraded Forms to the most recent version from 4.0.1 and received the following error:
I've even gone so far as to take the nuclear option and fully reinstall Forms, however the issue still persists.
I'm investigating further now, but any insight would be appreciated.
Regards, Chris
Comment author was deleted
Seems like the upgrade wasn't successfull so you ended up with a combo of 4.0.1 and 4.1.1 files
I can recommend to do a manual upgrade, you can get the files here http://nightly.umbraco.org/UmbracoForms/4.0/UmbracoForms.Files.4.1.1.zip simply extract and replace all existing files
Let me know if that gets rid of the error
Simply copying the files over didn't work; however manually clearing out the files and all project references, then copying over the files and adding the references did work.
Odd as "Clean Project" should have done most of that, but hey it worked!
Thanks Tim!
is working on a reply...