-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oqtane - Error compiling AppCode.dll #3505
Comments
@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? |
Any news on this fix? I've been trying 2sxc on Oqtane for a couple months now, and evertime I got stalled by one or another error. |
I believe @tvatavuk will look into this this week. |
I have had the same problem with oqtane 6.0 for .NET 9.0 |
@enfJoao, thank you for reporting this issue. It appears that the DLL is locked because multiple requests to the same app are attempting to compile it simultaneously (for example, if you have the same app added 10 times on the same page), which may be causing the compilation to fail. First, I need to reproduce this issue on my computer to identify the cause and fix it. I've conducted several tests, but everything is working as expected on my end. Could you please provide more details to help me investigate further? Ideally, if you have an Oqtane site that you can share with me, I could restore it on my system to see what's happening.
Thank you! |
Win 11 pro 24H2 There is only one app in the page. I cannot share the app since there is sensitive data on in. |
@enfJoao Thank you for providing the additional information — it was very helpful in narrowing down the test cases as I worked to reproduce the issue in my development environment. I conducted tests with several large applications (1k+, 10k+ and 50k+ entities), and everything appeared to work as expected, so unfortunately, I was not successful in reproducing the issue on my setup. However, based on details in your report, I have added some code to prevent the locking of If you're willing (and/or @jaruiz1961-ual), it would be great if you could test this on your Oqtane setup. I can provide you with today's build from the development branch: |
@tvatavuk sure. |
Here is link on my OneDrive ToSic.Sxc.Oqtane.Install.18.4.0-fix3505.nupkg |
I'm having issues installing modules, but I think I got it (ToSic.Sxc.Oqtane.Install.18.4.0-fix3505.log seems to point that way). New error: Also creates an empty dll. |
Ok... This was a lot faster than I expected. |
The issue you are encountering with module installation might be related to a OS limitation on IIS10 when running on desktop versions of Windows 10/11. This limitation stems from the capped number of concurrent network connections, which can cause uploads to freeze if the JavaScript responsible for splitting large uploads into smaller batches exceeds the connection limit. This problem does not occur on Windows Server, where the connection cap is higher. Workaround |
@enfJoao, could you please share your stripped-down app that demonstrates the issue? I'm still unable to reproduce it on my end. You mentioned:
Based on this, it seems that the presence of an
Everything is working as expected, and I can't reproduce the issue you're experiencing. Any additional details or a sample app would be greatly appreciated to help diagnose and resolve this issue. |
Ok. I tried three things:
There are two important issues I tested: the file upload failures in Oqtane and the AppCode compile failure. So this have to be caused by a combination of IIS config and files / oqtane config. Either way I'm not going to pursuit this any more. Just going forward with the new 6.0 install. BUT, I can still replicate the AppCode compile error with this condition: So this HAS TO be replicate the issue on your end:
To trigger the issue change The first load gets this: And after a reload: The only thing that changed with the new server or new install in new IIS config is that the error now only triggers if there are codding errors on the helper (before is happened even with no helpers in the folder). If you still cannot replicate this, please give me an e-mail address to send you the login info to a test install on my server. |
Thank you for the detailed feedback—it has been very helpful in narrowing down the issue.
Thank you again for the comprehensive test scenarios—it’s instrumental in replicating and resolving such issues! |
Issue is fixed. |
Here it is the error in azure |
we should have a release out by this weekend |
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, Action
1 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:
Instructions to Reproduce the Problem
Load any view (from specific apps with no significant differences).
Your environment
The text was updated successfully, but these errors were encountered: