Hi ,
Earlier we have used XamTileManager control in our Silverlight project successfully... Now we are migrating from Silverlight to WPF and trying to use this control XamTileManager in WPF but looks some issue. please find below error details:
Could not load file or assembly 'InfragisticsWPF4.Controls.Layouts.XamTileManager.v14.2, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.System.IO.FileNotFoundException: Could not load file or assembly 'InfragisticsWPF4.Controls.Layouts.XamTileManager.v14.2, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.File name: 'InfragisticsWPF4.Controls.Layouts.XamTileManager.v14.2, PublicKeyToken=7dd5c3163f2cd0cb' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly bamlAssembly) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlType bamlType) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId) at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId) at System.Windows.Baml2006.Baml2006Reader.Process_ElementStart() at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord() at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords() at System.Windows.Baml2006.Baml2006Reader.Read() at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
WRN: Assembly binding logging is turned OFF.
Hello Hitesh,
Thank you for verifying the specific version of Infragistics WPF 2014.2 that you are using in this case. The XAML code that you have provided looks fine in this case. I have a couple of additional recommendations for you on this matter, though.
1. Check the licenses.licx file of your project, if any exists. Are there references to a different specific version of Infragistics assemblies than 14.2.20142.2178? If so, remove these references from the .licx file. Normally this would be caught at compile-time.
2. If there are any compiled dependencies containing user controls or code libraries with Infragistics references - if these were compiled against a different Infragistics version, this may cause issues.
3. When you do a clean and rebuild of your application, what are the contents of the Bin => Debug folder? If the assemblies that get copied there are not 14.2.20142.2178, this could be the issue that you are seeing, as it points to your application using a different version somewhere. If there are no assemblies there at all, you may need to set the "Copy Local" property to true on your references in your application.
4. Unload your problematic .csproj file and try editing it. Are there any references to Infragistics assemblies inside that are not version 14.2.20142.2178? If so, you may need to change this so that it points at the correct version.
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew,
I tried with cleaning and deleting bin folder of the project, but it didn't work for us.
Infragistics control exact version is 14.2.20142.2178 and WPF Version is 3.0.6920.5011
Below is the code snippet and exception details.
<igXamTile:XamTileManager Grid.Row="1" Grid.ColumnSpan="2" TileRetentionMode="Retain" >
<igXamTile:NormalModeSettings TileLayoutOrder="Horizontal"/>
<igXamTile:XamTileManager.ItemTemplate>
<DataTemplate>
<igXamTile:XamTile>
<!--<d2DataReview:ReconDatasetView></d2DataReview:ReconDatasetView>-->
</igXamTile:XamTile>
</DataTemplate>
</igXamTile:XamTileManager.ItemTemplate>
</igXamTile:XamTileManager>
Please find below stack trace from exception details, inner exception is null, attaching the screenshot of error.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly bamlAssembly) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlType bamlType) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId) at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId) at System.Windows.Baml2006.Baml2006Reader.Process_ElementStart() at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord() at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords() at System.Windows.Baml2006.Baml2006Reader.Read() at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
Thank you for your update on this matter and verifying that the specified assemblies are included in your project in this case.
It is interesting that you are still receiving this exception. As an additional recommendation in this case, I would recommend cleaning and rebuilding your XamTileManager application, or deletion of the bin and debug folders of your application after exiting and restarting the project, as this issue does seem to have something to do with the assemblies that you are using, specifically.
Would it also be possible for you to please verify the exact version of Infragistics for WPF 2014.2 that you are using? This number would look like 14.2.20142.XXXX.
Is there also any "inner exception" detail on this error that you are receiving? I imagine this issue is happening on startup, and it would be helpful if you could provide any additional information about it.
Another thing that would be very helpful in this case is the XAML code that you using to set up your XamTileManager, or an isolated sample project that reproduces the issue. Would it be possible for you to please provide these?
Sorry for late reply. Both the assemblies with specified version are included in our project, still we are getting issue.
Same XamTileManager component has been working fine with our existing Silverlight application, this issue is coming while migrating it to WPF. log was provided in previous mail.
I have been investigating into this issue, and from the stack trace you have provided, it sounds like you are missing an assembly reference when trying to use the XamTileManager. Please verify that you have the following assemblies referenced in your WPF application when trying to use this control:
InfragisticsWPF4.v14.2.dllInfragisticsWPF4.Controls.Layouts.XamTileManager.v14.2.dll
If these assemblies are currently referenced, please verify that they are the same specific version. This can be seen by viewing the Properties of your assemblies, and should look in the format of 14.2.20142.XXXX for version 14.2.
If you are using the correct assemblies, and are referencing the same versions, then would it be possible for you to please provide any information about a possible inner exception in the exception details for the exception that you are seeing? Alternatively, would it be possible for you to please provide an isolated sample project where this issue is reproduced?