elwis
elwis

Reputation: 1405

visual studio gives me an error about an old DLL

I've upgraded an old .net1 project to vs2010. Everything works, except that designer gives me an error when opening some forms that use components from a referenced DLL.

Could not load file or assembly 'XXX.YYY, Version=1.0.2363.24558, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Det går inte att hitta filen.

I've recompiled the DLL and removed all references to the old one, then added references to the new one but still Deisgner keeps nagging about this specific non-existent version? As said.. everything works when running the application, but the Designer seems to hate it.

Anyone with a clue? I'm not much of a .net hacker, I confess..

EDIT: The application works, as said. If I choose "ignore & continue" the form shows up but without my Usercontrol. If I open the specific Usercontrol, it does show up however. But why won't it show up in the form, and how come that it works smooth but the designer refuses to show it since it has this weird idea that somewhere in my solution it's referencing that old assembly.. which apparantly doesn't exist???

Upvotes: 0

Views: 1387

Answers (2)

elwis
elwis

Reputation: 1405

Problem solved, it turned out there were a reference for another old DLL file that in turn were built using the troublesome DLL version. An upgrade of that project and recompiling with the new DLL solved the problem

Upvotes: 1

Leniel Maccaferri
Leniel Maccaferri

Reputation: 102438

Tip: Find in Solution Ctrl + Shift + F where this line is being used... probably there's some place that is still referencing the old DLL.

Look for this string: 1.0.2363.24558

Other thing you can try is: right click your project in Solution Explorer and select Unload Project (I'm using VS 11 Beta here). Then right click it again and select Edit 'ProjectName'.csproj. Then look there to see if there's a reference for this assembly version...

Upvotes: 0

Related Questions