Results 1 to 2 of 2

Thread: Microsoft.ApplicationBlocks.ExceptionManagement BUG!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    23

    Thumbs down Microsoft.ApplicationBlocks.ExceptionManagement BUG!!

    When you use Microsoft.ApplicationBlocks.ExceptionManagement in an dynamic loaded DLL (using reflection in .NET).

    The following code in MS ExceptionManager...

    Code:
    Private Shared EXCEPTIONMANAGER_NAME As String = GetType(ExceptionManager).Name
    returns Nothing.

    But if you run an exception in an normaly loaded dll och exe, it returns the name.

    The IDE can return the value, but not the code in runtime.

    Anyone have any idea ?

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    This is a guess, but I think that a plain ol' 'GetType' in VB.NET behaves special for vb folks. I know in C# you would load up an assembly like so:
    PHP Code:
    Assembly a Assembly.Load("yourassembly"); 
    and then to get a type from it you would do something like this:
    PHP Code:
    ExceptionManager em = (ExceptionManager)a.GetType("ExceptionManager"); 
    Not sure if that really helps, but good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width