Skip to content

fix ContentTypeReaderManager FileLoadException - #2701

Merged
nkast merged 1 commit into
mainfrom
fixContentTypeReaderManagerFileLoadException
Aug 21, 2026
Merged

nkast merged 1 commit into
mainfrom
fixContentTypeReaderManagerFileLoadException

Conversation

@nkast

@nkast nkast commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

the affected code is trying to resolve cases, where XNA produces readerTypeName with the Type only without the assembly, and which KNI also emulates. If a readerTypeName contain an assembly, it should already be resolved. But if the user didn't reference the TypeReader, or the name was changed and tries to load an old XNB, then those generate an invalid resolvedReaderTypeName and throw a FileLoadException with a crypting error message .

eg. "MonoGame.Extended.Tilemaps.Content.TilemapWorldReader, MonoGame.Extended" --> "MonoGame.Extended.Tilemaps.Content.TilemapWorldReader, MonoGame.Extended, Xna.Framework.Graphics"

FileLoadException = "MonoGame.Extended, Xna.Framework.Graphics"

the affected code is trying to resolve cases, where XNA produces readerTypeName with the Type only without the assembly, and which KNI also emulates. If a readerTypeName contain an assembly, it should allready be resolved. But if the user didn't reference the TypeReader, or the name was changed and tries to load an old XNB, then those generate an invalid resolvedReaderTypeName and throw a FileLoadException with a crypting error message .
eg. "MonoGame.Extended.Tilemaps.Content.TilemapWorldReader, MonoGame.Extended" -> "MonoGame.Extended.Tilemaps.Content.TilemapWorldReader, MonoGame.Extended, Xna.Framework.Graphics"
FileLoadException = "MonoGame.Extended, Xna.Framework.Graphics"
@nkast
nkast merged commit 727f875 into main Aug 21, 2026
1 check passed
@nkast
nkast deleted the fixContentTypeReaderManagerFileLoadException branch August 21, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant