2sic / app-mobius-forms

Simple jQuery based 2sxc form - to use immediately or to modify as needed. Multi-language, simple, with Recaptcha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after installing the App and adding to page

andyduo opened this issue · comments

Just installed Mobius Form 2 App on 2sxc 9.3 and DNN 8.0.3 but when I add the form to the page I get the following error:
Error: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Connect.Dnn.Koi.DnnSkinFile.AutoDetect() at Connect.Koi.Context.HttpContextState.TryToDetectTheCssFramework() at Connect.Koi.Context.HttpContextState.get_CssFramework() at Connect.Koi.Context.ToolsForCurrentState.get_Css() at Connect.Koi.Koi.Class(String classes) at ASP._Page_Portals_9_2sxc_Mobius_Forms__Contact_Form_cshtml.Execute() in c:\inetpub\vhosts\zzzzzzzzzzzzzzzzzzzz.co.nz\httpdocs\Portals\9\2sxc\Mobius Forms\_Contact Form.cshtml:line 32 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at ToSic.SexyContent.Engines.RazorEngine.Render(TextWriter writer) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 65 at ToSic.SexyContent.Engines.RazorEngine.RenderTemplate() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 92 at ToSic.SexyContent.Engines.EngineBase.Render() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\SexyContent\Engines\EngineBase.cs:line 92 at ToSic.SexyContent.SxcInstance.Render() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\SexyContent\SxcInstance_Render.cs:line 58 WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Any ideas how this might be fixed? Thank you.

did you add it to 2sxc 9.3 or 9.30? it needs 9.30 because Mobius 2 uses Koi for CSS framework detection.

@iJungleboy Sorry just getting back to this now. I'm using DNN 9.2 and 2sxc 9.32.00 LTS on a site but still get the above error after adding Forms app to the page.

So, I managed to get the Mobius forms to display on a DNN 9.1 install with 2sxc 9.3.2 LTS but when the page loads an error is generated in admin logs and the forms are not sending out (although the data is captured into the content items).

AbsoluteURL:/API/2sxc/view/module/rendertemplate

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:1b87c1d5-5107-4d01-85ad-918eaf14a840

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:Uocc/uTiF+5O3Py1gpfAFo/6Z+I=

Message:Connect.Koi: Error while loading framework settings from koi.json

StackTrace:

InnerMessage:The UTC time represented when the offset is applied must be between year 0 and 10,000. Parameter name: offset

InnerStackTrace:

at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset) at System.DateTimeOffset..ctor(DateTime dateTime) at System.Web.Hosting.ObjectCacheHost.System.Runtime.Caching.Hosting.IFileChangeNotificationSystem.StartMonitoring(String filePath, OnChangedCallback onChangedCallback, Object& state, DateTimeOffset& lastWrite, Int64& fileSize) at System.Runtime.Caching.HostFileChangeMonitor.InitDisposableMembers() at System.Runtime.Caching.HostFileChangeMonitor..ctor(IList`1 filePaths) at Connect.Dnn.Koi.DnnSkinFile.AutoDetect()
Source:

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: cloud

Mobius forms looks like a really useful addition to 2sxc, would love to get this working.

Two things: the first version-issue is probably related to 2sic/2sxc#1595 - check that out.
The second thing looks like your koi.json is faulty (not valid json?)

@iJungleboy Thank you for the help. I fixed up Koi.json and the second item is fixed. Have no attempted to sort the first one yet.

I can get the forms to work but they only send out the Customer email, nothing goes to admin is this expected behavior? Maybe I'm missing a setting somewhere.