Results 1 to 4 of 4

Thread: [RESOLVED] Error - TypeLoadException was unhandled

  1. #1

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Resolved [RESOLVED] Error - TypeLoadException was unhandled

    I'm getting a "TypeLoadException was unhandled" error. The description says

    Could not load type 'dnUtilities.OtherFunctions' from assembly 'dnUtilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

    So i've got a class library project. I've built that into a dll and am referencing it in a project in another solution. The name is "dnUtilities" and i've stored a lot of subs and functions inside it. I just got this error when i added a new module and tried calling a sub from it. I've got no idea why this error is happening since all the other functions from the other modules work. Besides modules i've also got a usercontrol in the dll. The framework of the dll and my calling project are both 3.5.

    Update: Actually none of the functions are working any more.
    Last edited by cheesebrother; Mar 16th, 2012 at 05:33 AM.
    Hooked for good.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,296

    Re: Error - TypeLoadException was unhandled

    Are you sure the build is succeeding?

  3. #3

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Re: Error - TypeLoadException was unhandled

    Yes, the build is definitely succeeding. Actually I just discovered that it works in new projects (unfortunately I'm kind of tied to my current problem project). In my problem project I can see the function in intellisense and visual basic will accept it. I just have the error stated above when i run it.
    Hooked for good.

  4. #4

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Re: Error - TypeLoadException was unhandled

    It seems be working again. I'm not sure whether it was chance or not but it seemed to work after i built the dll to another folder and referenced that.
    Hooked for good.

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