We're having problems opening design view after a multi-project upgrade. The upgrade seems to have succeeded. It compiles and runs without any issue.
Some of the forms, however, show this error when attempting to go into Design:
Unable to cast object of type 'Infragistics.Win.Appearance' to type 'Infragistics.Win.Appearance'.
with this in the call stack:
at Infragistics.Win.AppearanceHolder..ctor(SerializationInfo info, StreamingContext context)
Whats up?
Thanks.
Hello, This error message look like the typical upgrading issue. It possible that you application is referring to a reference with older version. Please check references in your project. They all should point to one location I recommend to use it form GAC. Recheck also your license file and delete the whole content. Then close all open files form visual studio and rebuild your project. If this doesn’t help you , then delete the whole content of bin and debug directory and remove all references and add them again. Then again rebuild your project. Let me know if this solve your problem.Sincerely,Dimi GinevaDeveloper Support EngineerInfragistics, Inc.
To my knowledge, VS does not allow you to add references to assemblies in the GAC.
I deleted and re-added references. Rebuilt. Same problem!
Hello, Did you tried to remove the content of the license file? Also the next suggestion what can cause this: are you using control build on Infragistics component that was build on older version and that wasn’t rebuild with the new one? Can you post sample application to investigate it ?Let me know if this solve your problem.Sincerely,Dimi GinevaDeveloper Support EngineerInfragistics, Inc.
We need both 9.2 and 8.1 installed on most machines (a branch is still on 8.1). On a machine with only 9.2 installed, the current trunk code works fine (therefore, no references exist to the older version). On machines where both versions are installed, the same trunk code causes problems -- but only on some forms.
Can you suggest definitive steps to resolve this?
This appears to be a Visual Studio issue. Both versions exist in the GAC. Builds using either version continue to work fine. VS Designer, however, appears not be be able to reliably load the appropriate version when both are installed. If either version is uninstalled, Designer can -- with some bin and reference purging -- be made to work fine.
Is there any way to get around this cleanly with a dual IG install?