could not load type library

  • Thread starter Thread starter Blue Frog
  • Start date Start date
B

Blue Frog

Hey,

Have a weird problem - been looking for a solution for 2 days solid now.

I am developing my first asp.net site and everything was going fine while I
developed on my XP laptop but I copied the site over to my 2000 server box
and set the permissions, set up the application again - configuration of
both machines seems exactly the same and the site ran fine for a day then
all of a sudden I get a 'could not load type' error for one of my assembly
classes.

So I looked around on the net and read some stuff about versioning and maybe
recompiling the assemblies so I did only to find that then I got another
'could not load type' error - this time on a different class in a different
assembly.

Anyone got any ideas what might be the problem here????

Blue Frog
 
Hi,

CLR loader algorithm works like this:

1) Check if assembly reference got public key of strong name
If key found CLR looks for the assembly in the GAC. if not found CLR
looks in the executable directory (bin dir in ASP.NET case). if type not
found in the local directory could not load type library throw by the
CLR

2) If assembly reference without public key the CLR looks for the
assembly just in the local directory.

Check that your assemblies meet that search path. If you can send the
error message as seen on the browser.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
Back
Top