views:

64

answers:

1

I changed some names of namespaces, assemblies in one of existing project (C# and ASP.NET). But when I try to debug it; I get this error.

Could not load file or assembly 'HR' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

I have replaced DFI with HR in the code.

A: 

If your project compiles, you may referencing the assembly in a config file. I would check anywhere you could be using late binding to reference a type. Also check your @Page directives as you may have a assembliy qualified type reference that is refering to the old HR assembly.

Athens
Thanks for the reply Athens.I changed names in exsisting application and I also changed assembly name (so there's no old HR assebmly). Also, I don't think so that late binding is responsible for this error.Thanks
kp