Help please! I am trying to integrate NetAdvantage CAB Extension into SCSF framework, and I keep getting this error when declaring a reference to UltraToolbarsManagerWorkspace
Error The type 'Microsoft.Practices.CompositeUI.SmartParts.IComposableWorkspace`2<T0,T1>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.CompositeUI, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null'. C:\Ex\WindowsApplication1\WindowsApplication1\Form1.Designer.cs 57 87 WindowsApplication1
Error 2 The type 'Microsoft.Practices.CompositeUI.SmartParts.IWorkspace' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.CompositeUI, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null'. C:\Ex\WindowsApplication1\WindowsApplication1\Form1.Designer.cs 57 87 WindowsApplication1
I even added all Infragistics' references to the projects but still can get this to work...?
Hi there,
I have the same problem at the moment. As soon as I find a solution I will post it here.
Regards and good luck (I am on a similar mission ),
Gerald
I got it running!
What did I do:
Now I am able to use i.e. IGFormShellApplication
All I have to do is to reference the included project.
I hope that helps. Regards,
Whoaw; it works at last, with this trick :
mcsean said: public abstract class SmartClientApplication<TWorkItem, TShell> : IGFormShellApplication<TWorkItem, TShell>
public abstract class SmartClientApplication<TWorkItem, TShell> : IGFormShellApplication<TWorkItem, TShell>
really great
Thanks a lot
PS : It requires to include a reference to Infragistics.Practices.CompositeUI.WinForms in Infrastructure.Library
Man, that was a valuable hint!
Thanks a lot,
I think the better one to inherite IGFormShellApplication is the SmartClientApplication class in Infrastructure.Library
public abstract class SmartClientApplication<TWorkItem, TShell> : FormShellApplication<TWorkItem, TShell>
to
cheers
I believe they work together you just need to make some changes in SCSF code, and that is the difficult part
The first line of the previous post should have been "I got it built"because as soon as I started the application I got an exception in the shell's run method in line
new ShellApplication().Run();
The exception reads like this
Microsoft.Practices.CompositeUI.Services.ModuleEnumeratorException was unhandled Message="An exception occurred while enumerating the modules using the Microsoft.Practices.CompositeUI.Services.FileCatalogModuleEnumerator enumerator." Source="Microsoft.Practices.CompositeUI" StackTrace: at Microsoft.Practices.CompositeUI.Services.FileCatalogModuleEnumerator.EnumerateModules() at Microsoft.Practices.CompositeUI.CabApplication`1.LoadModules() at Microsoft.Practices.CompositeUI.CabApplication`1.Run() at InfragisticsCAB.Infrastructure.Shell.ShellApplication.RunInDebugMode() in C:\Temp\build\test\InfragisticsCAB\Source\Infrastructure\Shell\ShellApplication.cs:line 61 at InfragisticsCAB.Infrastructure.Shell.ShellApplication.Main() in C:\Temp\build\test\InfragisticsCAB\Source\Infrastructure\Shell\ShellApplication.cs:line 52 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[ args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[ args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: Microsoft.Practices.CompositeUI.Configuration.SolutionProfileReaderException Message="An error occurred while reading the solution profile C:\\Temp\\build\\test\\InfragisticsCAB\\bin\\Debug\\ProfileCatalog.xml." Source="Microsoft.Practices.CompositeUI" StackTrace: at Microsoft.Practices.CompositeUI.Configuration.SolutionProfileReader.ReadProfile() at Microsoft.Practices.CompositeUI.Services.FileCatalogModuleEnumerator.EnumerateModules() InnerException: System.InvalidOperationException Message="There is an error in XML document (1, 2)." Source="System.Xml" StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at Microsoft.Practices.CompositeUI.Configuration.SolutionProfileReader.ReadProfile() InnerException: System.InvalidOperationException Message="<SolutionProfile xmlns='http://schemas.microsoft.com/pag/cab-profile/2.0'> was not expected." Source="qbyhvdah" StackTrace: at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSolutionProfileElement.Read5_SolutionProfile() InnerException:
All I did was changing one line in ShellApplication.cs from
class ShellApplication : SmartClientApplication<WorkItem, ShellForm>
class ShellApplication : IGFormShellApplication<WorkItem, ShellForm>
and including an appropriate using statement (to make IGFormShellApplication known).
After that change my application isn't able to read the file SolutionProfile.xml anymore.
Does anybody know the reason for that behavior?
Is Infragistics not able to work with SCSF (only pure CAB)? I ask because I just got the impression.
Thanks for answers,