views:

166

answers:

1

I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom

I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking the logs in Fuslogvw.

I've run out of ideas at this point. Could anybody help me, or at least suggest a new direction of searching for the solution ? Thx in advance.

The error message I get :

=== Pre-bind state information ===
LOG: User = PGS-SOFT\jkociubinski
LOG: DisplayName = Microsoft.Web.DynamicData
 (Partial)
LOG: Appbase = file:///P:/CECAK/trunk/src/Cecak.WebAdministration/
LOG: Initial PrivatePath = P:\CECAK\trunk\src\Cecak.WebAdministration\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: P:\CECAK\trunk\src\Cecak.WebAdministration\web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
A: 

You might be able to use the AppDomain.AssemblyResolve event to learn more about the Assembly that's being requested. You can check that the version numbers and everything else match. If you have the dependency already loaded, then you can just return it from the event handler. I've included some sample code in this answer.

Don Kirkby