Click to See Complete Forum and Search --> : [RESOLVED] exception error when replacing dll


amirt
February 24th, 2009, 02:37 AM
Hello all,

I have an old dll which not in use anymore in my asp.net application which calls infrastructure.dll
I tried to remove it and replce it by new dll which also called infrastructure.dll
Building web site sucseeds, but when I try to run the application, I get
this TypeLoadException (during site upload):

Could not load type 'InfraStructure.LogClass' from assembly 'Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

and cannot continue...(LogClass is a function from old dll which not in use anymore as I said and not appears at all in the application)
any ideas?

10x!

dannystommen
February 25th, 2009, 07:56 AM
It looks like it tries to load this 'InfraStructure.LogClass', but the question is where..

Maybe it the web.config there is some reference to this type?

amirt
February 25th, 2009, 09:01 AM
I looked for this string in the entire solution (including web.config) but didn't find anything...

Shuja Ali
February 25th, 2009, 11:36 AM
This looks to be an issue with references. Check if you have proper references set. Does it refer to the proper DLL that you created?

amirt
February 26th, 2009, 02:07 AM
I double checked it...I removed from project properties the old refeernce and added the new one.
I added the new dll as a project to my solution and verified the new refrence taken from the project.
what do I miss?:confused:

amirt
March 5th, 2009, 01:43 AM
Finally solved the mistery...
I had another dll in my project which was using the old infrastructure.dll...
removing from this dll the reference to old infrastructure.dll solved the problem!
haleluya :)