Script(s)

what I learn is what u c

‘The invoked member is not supported in a dynamic module.’

with one comment

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)

Advertisement

Written by gchandra

October 22, 2007 at 2:47 pm

One Response

Subscribe to comments with RSS.

  1. 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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: