Hi,
I have a XamDockManager in my page/usercontrol. When I try to view the content in Xaml designer view in Visual studio 2008, the below error message is shown.
Could not create an instance of type 'XamDockManager'
I have tried referencing the below designer dlls but still it shows the error.
Infragistics3.Wpf.DockManager.v9.1.Design
Infragistics3.Wpf.DockManager.v9.1.Dll.Design
Infragistics3.Wpf.DockManager.v9.1.VisualStudio.Design
Infragistics3.Wpf.DockManager.v9.1.Dll.VisualStudio.Design
Can anyone please help on how to get the controls in Xaml design view as well?
Also I face the same problem with XamDataGrid also. If anyone has solution please share
Thanks,
Ganesh
Hello Ganesh,
This sounds like a dll problem. What version are you using - trial,express, full? Have you referenced all the needed assemblied for a control. You can see the assemblied and the dependent assemblies here:
http://help.infragistics.com/Help/NetAdvantage/WPF/2009.1/CLR3.X/html/WPF_NetAdvantage_for_WPF_Full_Assemblies.html
I am using full version only. For XamDataGrid, I have added the below dlls
Infragistics3.Wpf.DataPresenter.v9.1.dllInfragistics3.Wpf.v9.1.dllInfragistics3.Wpf.Editors.v9.1.dll
But still the error is coming. I am trying this in VS2008 in Win XP.
Hello,
Can you provide a sample that reproduces this issue so that we can look into it?
Thanks.
Hi Alex,
Please find the sample attached. Have also attached the screenshot containing the error.
Is it working fine in your environment? Also please let me know if you require any further details.
Thanks in advance.
Ganesh.
Ganesh,
First of all, the project was empty. There was no Infragistics control inside it. As far as I can see from the screenshot, you want to add a XamDataGrid and it fails, but in this forum thread, you are talking about the XamDockManager. So, which one is it?
I am reattaching your project with a XamDockManager and a XamDataGrid. Please run it and let me know if it is ok. One wild guess is that you have probably updated the version of the WPF controls (applying a service release) and that is why you are getting this. If this is the case, make sure that you Clean the solution and rebuild it.
HI Alex,
Sorry for not providing the full code (it looks, I have compressed the solution without saving the file) :)
I am having this issue for both XamDockManager and XamDataGrid. I think I have clearly mentioned this in the first post of this thread.
Many thanks for your solution, however, it still is not working here. It is telling "Could not create an instance of type 'XamDockManager'". I am referencing the below dlls.
Name : Infragistics3.Wpf.DataPresenter.v9.1Runtime version : v2.0.50727Version : 9.1.20091.2091Name : Infragistics3.Wpf.DockManager.v9.1Runtime version : v2.0.50727Version : 9.1.20091.2091Name : Infragistics3.Wpf.Editors.v9.1Runtime version : v2.0.50727Version : 9.1.20091.2091Name : Infragistics3.Wpf.v9.1Runtime version : v2.0.50727Version : 9.1.20091.2091
Am I missing any latest version or hotfixes. Please let me know.
Thanks,Ganesh
I have not seen such an issue so I'm not sure what the problem could be. One thing I would say is that you should make sure that you are using the correct version of the assemblies. That is if you are using VS 2010 and the TargetFramework for the project is 3.0 or 3.5 that you should not be trying to use the assemblies whose name starts InfragisticsWPF4 since those are compiled against the CLR 4 and cannot be used in a CLR 2 project. Note, the reverse is not true - that is you can use the InfragisticsWPF3 assemblies in either a WPF 3.x project or a WPF 4 project. If you still have an issue then please post a sample project that demonstrates the issue along with any error/exception information that you are seeing (in the design surface, output window, etc.).
I am facing similar problem with Infragistics WPF 10.3 version.
Any idea how to resolve it?
Regards
Pallavi
Thanks Alex,
Yes I have raised a request now.
Regards,
Yes, you are using the latest service release. However, I am not sure why it is not working with you. I think it is best to contact Developer Support by opening a support ticket. You can do this here.