How to solve unknow type problem when load a Xmal file

醉酒当歌 提交于 2019-12-12 05:24:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!