‘The invoked member is not supported in a dynamic module.’
Error ‘The invoked member is not supported in a dynamic module.’ while generating exception string
While Using ASPUnhandledException.dll for exception handling, I received this error via email.
This error message was not at all helpful in production environment.
On careful debugging I found out that my Stored Proc failed.
Instead of giving the reason for Stored Proc failure it gave this obscure message. If someone knows why it gives this message it will be helpful.
(reason my sp failed was because I was calling a non-existing user defined function)
This happens because the Exception handler is attempting to the Assembly details from Reflection and because it is a dynamic Assembly, it does not support certain attributes that it is trying to be gathered. So you get this error.
The solution is to surround the right aspects of this with a Try Catch so that you don’t get an exception in an exception.
Ben Miller
June 24, 2008 at 12:13 am