Skip to content

Downgrade log4net to 2.0.17 for .NET Framework generator#1273

Merged
claudiamurialdo merged 1 commit into
masterfrom
fix/log4net-downgrade-netframework
Apr 27, 2026
Merged

Downgrade log4net to 2.0.17 for .NET Framework generator#1273
claudiamurialdo merged 1 commit into
masterfrom
fix/log4net-downgrade-netframework

Conversation

@claudiamurialdo
Copy link
Copy Markdown
Collaborator

log4net 3.x added platform detection in SystemInfo's static constructor (IsAndroidCore) that calls APIs requiring EnvironmentPermission / SecurityPermission. These are not granted under ASP.NET Medium Trust, so the cctor throws SecurityException and any page touching the logger fails at startup.

Keep log4net 3.3.0 on the .NET Core generator (still supported there) and only downgrade the .NET Framework target where Medium Trust KBs exist. The binding-redirect entry in gxconfig.cs (#else branch, active only under NETFRAMEWORK) is updated accordingly.
Issue:208437

log4net 3.x added platform detection in SystemInfo's static constructor
(IsAndroidCore) that calls APIs requiring EnvironmentPermission /
SecurityPermission. These are not granted under ASP.NET Medium Trust,
so the cctor throws SecurityException and any page touching the logger
fails at startup.

Keep log4net 3.3.0 on the .NET Core generator (still supported there)
and only downgrade the .NET Framework target where Medium Trust KBs
exist. The binding-redirect entry in gxconfig.cs (#else branch, active
only under NETFRAMEWORK) is updated accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests April 24, 2026 20:35 — with GitHub Actions Inactive
@claudiamurialdo claudiamurialdo temporarily deployed to kafka-integration-tests April 24, 2026 20:35 — with GitHub Actions Inactive
@genexusbot
Copy link
Copy Markdown
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo merged commit f39c5ae into master Apr 27, 2026
9 of 10 checks passed
@claudiamurialdo claudiamurialdo deleted the fix/log4net-downgrade-netframework branch April 27, 2026 14:02
claudiamurialdo added a commit that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants