0

I created a TypeConverter in assembly A.dll. My WPF app. works fine when the A.dll file is in the same folder as the app.

When this A.dll file is in another folder (a sub folder), I got the following error:

System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Nullable`1[EKey]' and 'EKeyId'. Consider using Converter property of Binding. BindingExpression:Path=ClientKey; DataItem='MItem' (HashCode=25260709); target element is 'Selector' (Name='this'); target property is 'SelectedKey' (type 'KeyId')

I don't understand where is the problem ? I have a lot of other dll files in this sub folder that are loaded correctly. Thanks in advance for your help.

12
  • Have you tried to examine whether your A.dll is loaded into AppDomain?
    – alex.b
    May 14, 2013 at 14:38
  • I suppose it is not loaded when it is not in the same folder but I don't know how to check it for sure.
    – Pierre
    May 14, 2013 at 15:23
  • Try this code to check whether desired assembly is loaded: System.AppDomain.CurrentDomain.GetAssemblies().
    – alex.b
    May 14, 2013 at 15:26
  • BTW, could you post some code please?
    – alex.b
    May 14, 2013 at 15:27
  • The assembly is loaded.
    – Pierre
    May 14, 2013 at 15:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.