-
Notifications
You must be signed in to change notification settings - Fork 483
Description
In our software we are experiencing VerificationExceptions of this kind:
System.Security.VerificationException : Method Castle.Proxies.[some method] type argument '[some type]' violates the constraint of type parameter 'Txxx'
We tried to get hold of the generated proxies to analyze what is generated and why this exception occurs but didn't find a way yet on how to get the JITted code.
We got so far that we proofed the constraints are met but the exception is still thrown. This leads us to the conclusion that something is generated in the wrong way within Castle.Core.
We tried to have an example to reproduce this issue but didn't find a way to do so yet. The only source we have is our software running on different computers and experiencing this issue from time to time and in the last weeks more often. Restarting the software helps to get the system back to running.
Components used:
- Ninject.Extensions.Factory (using Castle.Core)
Questions:
- Any ideas how we could get hold of the code that is generated dynamically?
- Any other idea or hint what could go wrong?
- Has anybody else also experienced this kind of behavior?
Looking forward to bring some light into this issue.