Asp.net: Problem with summernote after last Wappler Update

Hello, after upgrading Wappler to the latest version i have a problem with a form made with Summernote.
I have to upload images that must remain embedded (with the path) in the text.
The image upload works (I see it in the destination folder), but the path is not kept

summernote

Hello,
I don’t think anything has really changed in summernote in the last year or so.
Is this happening in a specific browser?

Tested with different kind of browser. I assure you that last week, before the update, the same page was working correctly! :pensive: :pensive: :pensive:

So it is not working there as well?

Edge… Chrome… Firefox… same result

what makes me think that it does not depend on me is: 1-the form has not been modified anymore
2-the form is present on two different pages, and in both cases it behaves the same way
it seems like value image_upload.url is not passed

I just tested this and there are no issues with image upload in summernote.
Better check for errors when uploading the image in summernote:

can you please help me understand what this error means?
But I don’t understand why it doesn’t work anymore since last week … I haven’t made any kind of changes on the page!

	
message	"Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione della raccolta.\r\nNome parametro: index"
lastAction	
name	"fileExists"
module	"fs"
action	"direxists"
options	
path	"/public/invionews/{{datiutente[0].codice}}/"
then	
steps	
0	
name	"image_upload"
module	"upload"
action	"upload"
options	
fields	"{{$_POST.file}}"
path	"/public/invionews/{{datiutente[0].codice}}/"
replaceSpace	true
replaceDiacritics	true
meta	
0	
name	"name"
type	"text"
1	
name	"path"
type	"text"
2	
name	"url"
type	"text"
3	
name	"type"
type	"text"
4	
name	"size"
type	"text"
5	
name	"error"
type	"number"
outputType	"file"
output	true
1	
name	"image_process"
module	"image"
action	"load"
options	
path	"{{image_upload.path}}"
outputType	"object"
meta	
0	
name	"width"
type	"number"
1	
name	"height"
type	"number"
2	
name	""
module	"image"
action	"resize"
options	
instance	"image_process"
width	800
3	
name	"new_image"
module	"image"
action	"save"
options	
instance	"image_process"
path	"/public/invionews/{{datiutente[0].codice}}/"
overwrite	true
quality	90
4	
name	"url"
module	"core"
action	"setvalue"
options	
value	"{{image_upload.url}}"
output	true
meta	[]
outputType	"text"
else	
steps	
0	
name	"createFolder"
module	"fs"
action	"createdir"
options	
path	"/public/invionews/{{datiutente[0].codice}}/"
outputType	"boolean"
output	true
1	
name	"image_upload"
module	"upload"
action	"upload"
options	
fields	"{{$_POST.file}}"
path	"/public/invionews/{{datiutente[0].codice}}/"
replaceSpace	true
replaceDiacritics	true
meta	
0	
name	"name"
type	"text"
1	
name	"path"
type	"text"
2	
name	"url"
type	"text"
3	
name	"type"
type	"text"
4	
name	"size"
type	"text"
5	
name	"error"
type	"number"
outputType	"file"
output	true
2	
name	"image_process"
module	"image"
action	"load"
options	
path	"{{image_upload.path}}"
outputType	"object"
meta	
0	
name	"width"
type	"number"
1	
name	"height"
type	"number"
3	
name	""
module	"image"
action	"resize"
options	
instance	"image_process"
width	800
4	
name	"new_image"
module	"image"
action	"save"
options	
instance	"image_process"
path	"/public/invionews/{{datiutente[0].codice}}/"
overwrite	true
quality	90
5	
name	"url"
module	"core"
action	"setvalue"
options	
value	"{{image_upload.url}}"
output	true
meta	[]
outputType	"text"
outputType	"boolean"
output	true
orgException	
ClassName	"System.ArgumentOutOfRangeException"
Message	"Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione della raccolta."
Data	null
InnerException	null
HelpURL	null
StackTraceString	"   in System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)\r\n   in System.Collections.Generic.List`1.get_Item(Int32 index)\r\n   in DMXzone.ServerConnect.Parser.<>c__DisplayClass39_0.<ObjectIndex>b__0() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 583\r\n   in DMXzone.ServerConnect.Parser.ObjectMember(Func`1 value) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 590\r\n   in DMXzone.ServerConnect.Parser.Primary() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 540\r\n   in DMXzone.ServerConnect.Parser.Unary() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 452\r\n   in DMXzone.ServerConnect.Parser.Multiplicative() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 405\r\n   in DMXzone.ServerConnect.Parser.Addictive() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 382\r\n   in DMXzone.ServerConnect.Parser.BitwiseShift() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 356\r\n   in DMXzone.ServerConnect.Parser.Relational() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 324\r\n   in DMXzone.ServerConnect.Parser.Equality() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 295\r\n   in DMXzone.ServerConnect.Parser.BitwiseAnd() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 282\r\n   in DMXzone.ServerConnect.Parser.BitwiseXor() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 269\r\n   in DMXzone.ServerConnect.Parser.BitwiseOr() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 256\r\n   in DMXzone.ServerConnect.Parser.LogicalAnd() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 243\r\n   in DMXzone.ServerConnect.Parser.LogicalOr() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 225\r\n   in DMXzone.ServerConnect.Parser.Conditional() in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 0\r\n   in DMXzone.ServerConnect.Parser.ParseExpression(String expression, Scope scope) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 107\r\n   in DMXzone.ServerConnect.Parser.<>c__DisplayClass16_0.<ParseTemplate>b__0(Match match) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 99\r\n   in System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)\r\n   in System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)\r\n   in System.Text.RegularExpressions.Regex.Replace(String input, String pattern, MatchEvaluator evaluator)\r\n   in DMXzone.ServerConnect.Parser.Parse(JToken data, Scope scope) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\Parser.cs:riga 79\r\n   in DMXzone.ServerConnect.App.Execute(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\App.cs:riga 397\r\n   in DMXzone.ServerConnect.ServerConnect.ExecuteAction(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\ServerConnect.cs:riga 235"
RemoteStackTraceString	null
RemoteStackIndex	0
ExceptionMethod	"8\nThrowArgumentOutOfRangeException\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.ThrowHelper\nVoid ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)"
HResult	-2146233086
Source	"mscorlib"
WatsonBuckets	null
ParamName	"index"
ActualValue	null

I believe the error is in the {{datiutente[0].codice}} expression. It gives an invalid index error, so probably datiutente is not an array or it is empty.

Hi patrick! {{datiutente[0].codice}} is a value I found from a query, using Security Identity. It’s not empty (in this example, ‘9999’, i put as input type="text" in my form

Also, up to the “save image” step everything works correctly. The image is uploaded right into the client’s ‘9999’ folder.

What doesn’t work is the last step, which doesn’t return the {{image_upload.url}} value in the form

@patrick
I’ll update you on my tests.
I had a site backup made on 1/17.
I replaced it with the current one and so image embedding works.
When I open Wappler, with the backup I am talking about, I am asked to update the files you see below.
And from that moment the embedding doesn’t work again anymore. So I’m sure it depends on the Wappler update.

dimonews2

I will check the image processor, in your screenshot it seems the only component that was updated for server connect.

thank you. I confirm that if I don’t update, everything works.

Please test this update DMXzone.ServerConnect.ImageProcessor.zip (11.3 KB)

First I have to update App Connect and Server Connect from Wappler and then overwrite with the two files you sent me?

No need to update the files first. Directly test with these two files. Make sure to upload them to the server when you replace the existing files locally.

Doesn’t work, i got this error:

{
  "message": "Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "lastAction": {
    "name": "image_process",
    "module": "image",
    "action": "load",
    "options": {
      "path": null,
      "autoOrient": false
    },
    "outputType": "object",
    "meta": [
      {
        "name": "width",
        "type": "number"
      },
      {
        "name": "height",
        "type": "number"
      }
    ]
  },
  "orgException": {
    "ClassName": "System.IO.FileLoadException",
    "Message": "Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
    "Data": null,
    "InnerException": null,
    "HelpURL": null,
    "StackTraceString": "   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)\r\n   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()\r\n   at System.Reflection.RuntimeMethodInfo.GetParameters()\r\n   at DMXzone.ServerConnect.App.Execute(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\App.cs:line 409\r\n   at DMXzone.ServerConnect.ServerConnect.ExecuteAction(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\ServerConnect.cs:line 235",
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": "8\nGetSignature\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Signature\nVoid GetSignature(Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType)",
    "HResult": -2146234304,
    "Source": "mscorlib",
    "WatsonBuckets": null,
    "FileLoad_FileName": "Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed",
    "FileLoad_FusionLog": "WRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n"
  }
}

What .NET version does your server run? The new files are compiled with target .NET 4.5.2 while previously we had 3.5 as target.

Here all new compiled DLL files: DMXzone.ServerConnect.zip (1.7 MB)

If the new files do not work then I will see if I can compile the image processor with 3.5 as target again.

On my server I have 4.7.2 , or I can set 3.5.30729.4926 but I’d rather not have to!

With the files you sent me it’s even worse!!! :pensive: :pensive: :pensive:
The access page does not work either, ( is an access form with login / password from which I can access the use of the form)

	
message	"Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
lastAction	
name	"security"
module	"auth"
action	"provider"
options	
secret	"feuSjOPl8a8zEsM"
provider	"Database"
connection	"eurosoft"
users	
table	"eurosoft.archimede"
identity	"ID"
username	"codice"
password	"piva"
permissions	
abilitato	
table	"eurosoft.archimede"
identity	"ID"
conditions	
0	
column	"invionews"
operator	"="
value	"y"
passwordVerify	true
meta	
0	
name	"identity"
type	"text"
orgException	
ClassName	"System.IO.FileLoadException"
Message	"Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
Data	null
InnerException	null
HelpURL	null
StackTraceString	"   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)\r\n   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()\r\n   at System.Reflection.RuntimeMethodInfo.GetParameters()\r\n   at DMXzone.ServerConnect.App.Execute(JToken action) in C:\\Development\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\App.cs:line 409\r\n   at DMXzone.ServerConnect.ServerConnect.ExecuteAction(JToken action) in C:\\Development\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\ServerConnect.cs:line 235"
RemoteStackTraceString	null
RemoteStackIndex	0
ExceptionMethod	"8\nGetSignature\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Signature\nVoid GetSignature(Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType)"
HResult	-2146234304
Source	"mscorlib"
WatsonBuckets	null
FileLoad_FileName	"Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed"
FileLoad_FusionLog	"WRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n"

Do you still have some old dll files in the bin folder or it still has some old code references? The new compiled dlls use Newtonsoft.Json version 13, not 12.

Setting to 3.5 will not work with the new dll files, since these require minimal version 4.5. Delete all the files in the Bin folder and unzip the new dll files there, perhaps even restart the server pool. If it then still doesn’t work revert to the previous files and I will recompile the image processor.