ILSpy.exe fails to run

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fabbo
Newbie
Newbie
Posts: 1
Joined: Wed Jan 26, 2022 8:35 am

ILSpy.exe fails to run

Post by fabbo »

I downloaded ILSpy.exe from https://github.com/icsharpcode/ILSpy/re ... 2-preview3

Then I tried to run it with Wine (compiled from Git, on Ubuntu Linux 21.10). Initially it asked to download the Mono libraries, which I did, then it failed. The error seems to stem from a missing System.Windows.Controls.Ribbon. How to solve it?

Code: Select all

fabbo@Gaming:~$ dev/wine/wine prog/ilspy/ILSpy.exe
0024:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7.2" not implemented
0024:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7.2" not implemented
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION

Unhandled Exception:
System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at System.Windows.PropertyPath.GetTypeFromName (System.String name, System.Object context) [0x000ef] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.ResolvePropertyName (System.String name, System.Object item, System.Type ownerType, System.Object context, System.Boolean throwOnError) [0x00120] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.ResolvePathParts (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x00089] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.PrepareSourceValueInfo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x0005d] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath..ctor (System.String path, System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x00025] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPathConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, System.Object source) [0x00023] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Uri baseUri) [0x00007] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.Xaml.XamlReader xamlReader, System.Windows.Markup.ParserContext parserContext) [0x00042] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.Xml.XmlReader reader, System.Windows.Markup.ParserContext parserContext, System.Windows.Markup.XamlParseMode parseMode, System.Boolean useRestrictiveXamlReader) [0x00170] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Boolean useRestrictiveXamlReader) [0x00034] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Parse (System.String xamlText, System.Windows.Markup.ParserContext parserContext, System.Boolean useRestrictiveXamlReader) [0x00012] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Parse (System.String xamlText, System.Windows.Markup.ParserContext parserContext) [0x00001] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at TomsToolbox.Wpf.Styles.WpfStyles.GetDefaultStyles () [0x000e8] in <6e2a9f346e2540cc9b0ab106170c8600>:0 
  at TomsToolbox.Wpf.Styles.WpfStyles.RegisterDefaultStyles (System.Windows.ResourceDictionary resources) [0x00006] in <6e2a9f346e2540cc9b0ab106170c8600>:0 
  at ICSharpCode.ILSpy.App..ctor () [0x0009a] in <907c91db69104580956968428e06a3fc>:0 
  at ICSharpCode.ILSpy.App.Main () [0x00000] in <907c91db69104580956968428e06a3fc>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
  at System.Windows.PropertyPath.GetTypeFromName (System.String name, System.Object context) [0x000ef] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.ResolvePropertyName (System.String name, System.Object item, System.Type ownerType, System.Object context, System.Boolean throwOnError) [0x00120] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.ResolvePathParts (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x00089] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath.PrepareSourceValueInfo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x0005d] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPath..ctor (System.String path, System.ComponentModel.ITypeDescriptorContext typeDescriptorContext) [0x00025] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.PropertyPathConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, System.Object source) [0x00023] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <e2fa54a4379d483b8caf1ee8020930eb>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Uri baseUri) [0x00007] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.Xaml.XamlReader xamlReader, System.Windows.Markup.ParserContext parserContext) [0x00042] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.Xml.XmlReader reader, System.Windows.Markup.ParserContext parserContext, System.Windows.Markup.XamlParseMode parseMode, System.Boolean useRestrictiveXamlReader) [0x00170] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Load (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Boolean useRestrictiveXamlReader) [0x00034] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Parse (System.String xamlText, System.Windows.Markup.ParserContext parserContext, System.Boolean useRestrictiveXamlReader) [0x00012] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at System.Windows.Markup.XamlReader.Parse (System.String xamlText, System.Windows.Markup.ParserContext parserContext) [0x00001] in <6b66d3014d624c31b7d7f8166b362e2b>:0 
  at TomsToolbox.Wpf.Styles.WpfStyles.GetDefaultStyles () [0x000e8] in <6e2a9f346e2540cc9b0ab106170c8600>:0 
  at TomsToolbox.Wpf.Styles.WpfStyles.RegisterDefaultStyles (System.Windows.ResourceDictionary resources) [0x00006] in <6e2a9f346e2540cc9b0ab106170c8600>:0 
  at ICSharpCode.ILSpy.App..ctor () [0x0009a] in <907c91db69104580956968428e06a3fc>:0 
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: ILSpy.exe fails to run

Post by jkfloris »

You can try to install the .Net framework with winetricks
But it's probably easier to use the cross-platform version of ILSpy
https://github.com/icsharpcode/AvaloniaILSpy
Locked