2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

Oqtane - Error compiling AppCode.dll #3505

Open enfJoao opened 6 days ago

enfJoao commented 6 days ago

I'm submitting a

[x] bug report

...about

[x] other / unknown

Current Behavior / Expected Behavior

Importing apps from DNN to test in Oqtane. Some work with no issues, other report this:

Error: System.Exception: Error: Can't compile 'AppCode.dll' in AppCode. Details are logged into insights. Bad IL format. The format of the file ' .... \App_Data\2sxc.bin\App-00006-AppCode-5c98a772de834cf2f6cbaba95a058d43347c40224e3ac673b0d60a04183c20b8.dll' is invalid. at ToSic.Sxc.Razor.RazorCompiler.FindViewAsync(ActionContext actionContext, String partialName, IApp app, HotBuildSpec spec) at ToSic.Sxc.Razor.RazorCompiler.CompileView(String partialName, Action1 configure, IApp app, HotBuildSpec spec) at ToSic.Sxc.Razor.RazorRenderer.RenderToStringAsync[TModel](String templatePath, TModel model, Action1 configure, IApp app, HotBuildSpec hotBuildSpec) at ToSic.Sxc.Razor.RazorEngine.RenderTask(RenderSpecs specs)

This is the content of the folder: image

Instructions to Reproduce the Problem

Load any view (from specific apps with no significant differences).

Your environment

iJungleboy commented 6 days ago

@tvatavuk any ideas?

Is there a chance that two compilers try to create the file at the same time, and refuse to overwrite a 0-byte file or something?

enfJoao commented 6 days ago

Deleted the files in the folder, restarted the server, same output. One app generates the files and the app runs, the other generates the errors. image

image