-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
area-AssemblyLoader-coreclrhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
Based on dotnet/roslyn#39470, a relatively common issue when working with dynamically generated assemblies is that, due to a bug in your code, you attempt to load an empty assembly (e.g., you call Assembly.Load(Stream) with a Stream of Length 0). When this happens, you get a correct, but not particularly helpful exception:
System.BadImageFormatException: Bad IL format.
Would it make sense to improve the exception message, to make it more clear what the issue is?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-AssemblyLoader-coreclrhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Type
Projects
Status
No status