Using Wappler 4.8.1 on a Mac, IIS as the web server and MS SQL Server as the database.
I have a page with a Server action that has a view on it. It works in previous versions, maybe up to 4.8.0. Can’t really say because I have not updated this site in a couple of months.
From my research so far, this is only server actions with a table view, all other server actions either custom query or using the query builder works ok. This is working on the production version of this site with an older Wappler version and I have not made any changes at all.
Here is the ASP.NET error I get on the page trying to pull the server action with the view:
And the detailed message is this:
Server Error in ‘/’ Application.
Cannot access child value on Newtonsoft.Json.Linq.JValue.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration> <system.web> <compilation debug="true"/> </system.web></configuration> Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
`[InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.]
Newtonsoft.Json.Linq.JToken.get_Item(Object key) +106
DMXzone.ServerConnect.Validation.Validator.ValidateFields(JToken fields, JToken context, JObject errors, String fieldName) in C:\Development\Server Connect\ASPNET_Source\HTML5 Form Validator\Validation\Validator.cs:95
DMXzone.ServerConnect.Validation.Validator.ParseMeta(JToken meta) in C:\Development\Server Connect\ASPNET_Source\HTML5 Form Validator\Validation\Validator.cs:28
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments) +128
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture) +142
DMXzone.ServerConnect.ServerConnect.Meta(JToken data) in C:\Development\Server Connect\ASPNET_Source\DMXzone Server Connect\ServerConnect.cs:116
DMXzone.ServerConnect.ServerConnect.Define(JToken data) in C:\Development\Server Connect\ASPNET_Source\DMXzone Server Connect\ServerConnect.cs:79
DMXzone.ServerConnect.ServerConnect.Run(String action) in C:\Development\Server Connect\ASPNET_Source\DMXzone Server Connect\ServerConnect.cs:66
ASP.dmxconnect_api_doorlist_alldeliveries_aspx.Page_Load(Object source, EventArgs e) +32
System.Web.UI.Control.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785`
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0