We are converting existing projects with Infragistics WPF 12.2 assembly references to .NET4.5.
I cannot get VS2012 or Blend CTP 2 Update 2 to display any IG controls in the designer after changing to .NET 4.5. Projects build and run correctly.
Designer shows errors similar to:
"Object of type Jnfragistics.Windows.Themes.RibbonGeneric+ Locator cannot be converted to type Infragistics.Windows.Themes.ResourceSetLocator."
Virtually every IG control will display this error in the designer where the theme assembly is specific to the control type throwing the error.
Our Infragistics dlls are from the CLR4.0 folder. I see there is also a "Version Free" folder. Do I need to change my references to the "Version Free" dlls?
I have confirmed that all projects in the solution are targeting .NET 4.5 and they all build and run correctly. I just can't get the WYSIWYG designer to show Infragistics controls.
I won't be able to send you the projects. Today I tried deleted a XamRibbon from one view and readded it by dragging a XamRibbon from the toolbox to the designer and it rendered in the designer, but when I tried to manipulate any of the properties in the xaml directly, it threw the error:
InnerException: Set property 'Infragistics.Windows.Themes.ResourceSetLoader.Locator' threw an exception.
ArgumentException: Object of type 'Infragistics.Windows.Themes.RibbonGeneric+Locator' cannot be converted to type 'Infragistics.Windows.Themes.ResourceSetLocator'.
I found the same behavior with virtually all IG controls.
Hello,
I can create a private case for you, where you could send me the project, where the issue is reproduced, so we can investigate it further for you.
Looking forward for your reply.
I was able to convert your project to 4.5 and it worked fine in the designer for both VS2012 and Blend. I also changed the reference to the version-free dlls and it worked fine in the designer.
The solution I am converting has many projects and layers. I have examined each project to make sure they are all targeting the correct CLR and the dll references are compiled to the correct target CLR and reference the same set of Infragistics dlls. I am able to create from scratch a simple project like yours referencing the IG dlls and it works correctly like your sample project.
I also made sure the design and design.VS2012 helper assemblies are in the source dll folder.
What other characteristics should I be looking at?
Thank you.
Hello again,
Could please try to change the target framework of the sample I attached, so we find out where exactly the issue comes from.
InfragisticsWPF v 12.2.20122.2089
OS Name Microsoft Windows Server 2008 R2 Enterprise
Version 6.1.7601 Service Pack 1 Build 7601
Installed Physical Memory (RAM) 16.0 GBTotal Physical Memory 16.0 GBAvailable Physical Memory 9.20 GBTotal Virtual Memory 31.9 GBAvailable Virtual Memory 24.0 GBPage File Space 16.0 GB
Microsoft Visual Studio Ultimate 2012Version 11.0.60223.01 Update 2 CTPMicrosoft .NET FrameworkVersion 4.5.50709
Installed Version: Ultimate
Architecture and Modeling Tools 04940-004-0038003-02414Microsoft Architecture and Modeling Tools UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
LightSwitch for Visual Studio 2012 04940-004-0038003-02414Microsoft LightSwitch for Visual Studio 2012
Office Developer Tools 04940-004-0038003-02414Microsoft Office Developer Tools
Team Explorer for Visual Studio 2012 04940-004-0038003-02414Microsoft Team Explorer for Visual Studio 2012
Visual Basic 2012 04940-004-0038003-02414Microsoft Visual Basic 2012
Visual C# 2012 04940-004-0038003-02414Microsoft Visual C# 2012
Visual C++ 2012 04940-004-0038003-02414Microsoft Visual C++ 2012
Visual F# 2012 04940-004-0038003-02414Microsoft Visual F# 2012
Visual Studio 2012 Code Analysis Spell Checker 04940-004-0038003-02414Microsoft® Visual Studio® 2012 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Visual Studio 2012 SharePoint Developer Tools 04940-004-0038003-02414Microsoft Visual Studio 2012 SharePoint Developer Tools
Color Theme Designer 1.0Designer for creating new color themes
Infragistics Version Utility 1.0This utility lets you set the Infragistics version that a specific project is using.
Infragistics.ColorTuner 1.0Infragistics Color Tuner for Microsoft Visual Studio 2010. For more information visit http://ko.infragistics.com
NuGet Package Manager 2.0.30625.9003NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.0Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 11.1.20627.00Microsoft SQL Server Data Tools
Web Developer Tools 1.0.30710.0Microsoft Web Developer Tools contains the following components:Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.Web Form Templates: Includes the default templates for Web Form Applications.Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.