Open shajiltetherfi opened 5 days ago
Extremely likely to be an issue local to your machine, such as a corrupted DLL file or interference from an anti-virus program.
Try updating the .NET 6 runtime to the latest version and checking signatures on all your DLLs.
I have tried to update the latest .net 6 (6.0.35) and still get the same error . just we have Windows Defender as anti virus...
can you please re-open and help to check this problem
Possible duplicate of https://github.com/DapperLib/Dapper/issues/2124.
Are you using AOT compilation or .NET obfuscation or Fody or any other tool that rewrites the IL of your compiled assemblies?
I have not used any tool to rewrite the IL. I downgraded from version 2.3.6 to 2.1.9, and it is now functioning correctly on the same server. Please let me know if there is any additional information I can provide to help identify the root cause of the issue on 2.3.6 . i badly wanted to update because the fixes and vulnerability which was made between 2.1.9 to 2.3.6 .
Also Please note this is happening in specific EC2 instance which we used to create via AMI.
Like Marc said at https://github.com/DapperLib/Dapper/issues/2124#issuecomment-2421767331, you need to provide a minimal repro in order for people to help you.
MySqlConnector doesn't emit any IL, so that makes me think it's perhaps more likely to be a bug in Dapper (although that also seems extremely unlikely to me).
Please note this is happening in specific EC2 instance which we used to create via AMI.
Do you mean this crash only happens on one particular EC2 instance (and not in local development, and not on any other EC2 instance you've deployed the code to)? If so, that instance is broken. Destroy it and recreate a new one with a clean image, then redeploy the code.
@bgrainger Yes, I agree with your point. I am trying to destroy and recreate a new AMI and remove old .net runtimes. keep you posted. I hope it will be resolve. Thanks Again @bgrainger @mgravell
Software versions MySqlConnector version: 2.3.6 Server type (MySQL, MariaDB, Aurora, etc.) and version: MYSQL .NET version: >.NET6 (Optional) ORM NuGet packages and versions:
Describe the bug System.InvalidProgramException: Common Language Runtime detected an invalid program. Exception Full exception message and call stack (if applicable)
Code sample
Expected behavior A clear and concise description of what you expected to happen.
Additional context