-
Mar 16th, 2012, 05:27 AM
#1
Thread Starter
Addicted Member
[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.
-
Mar 16th, 2012, 06:01 AM
#2
Re: Error - TypeLoadException was unhandled
Are you sure the build is succeeding?
-
Mar 16th, 2012, 07:03 AM
#3
Thread Starter
Addicted Member
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.
-
Mar 17th, 2012, 02:51 AM
#4
Thread Starter
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|