could not load type library

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
 
N

Natty Gur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top