问题
I am facing this error, "Cannot create unknown Type '{clr- namespace:ActivityLibrary1;assembly=ActivityLibrary1}MyActivity1'" while trying to load a worklfow from Xaml file. I am trying to load Xaml from a class library project. ActivityLibrary1 is library that contains custom activity. I tried to resolve assembly at runtime by handling the currentDomain.AssemblyResolve += new ResolveEventHandler(MyResolveEventHandler) event. The assembly which it is unable to find is System.Xaml.Resources. Any ideas??
回答1:
Problem solved by putting assembly in Clr 4.0's GAC
来源:https://stackoverflow.com/questions/1419734/how-to-solve-unknow-type-problem-when-load-a-xmal-file