Resharper command line tools won't run

Hi everyone,

I'm having trouble using resharper command line tools on windows 8.1. I've installed the latest version yesterday. Whenever I launch inspectcode (even without any parameter), I get a long long list of exceptions (at first I thought it was caught in a loop).

Can someone please help me ?

Here are the first exceptions, the remaining of the errors are consisting of the same 6 exceptions repeating themselves (the final log file is about 50 Mb) :

Component JetBrains.DocumentManagers.impl.IdeInMemoryDocumentFactory [Singleton, Corrupted] construction has failed. Could not load the runtime assembly for the part catalog assembly "Assembly: JetBrains.Platform.DocumentManager, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325". Could not bind a part catalog assembly by loading from file "D:\Program Files\Resharper\JetBrains.Platform.DocumentManager.dll". Impossible de charger le fichier ou l'assembly 'file:///D:\Program Files\Resharper\JetBrains.Platform.DocumentManager.dll' ou une de ses d‚pendances. L'op‚ration n'est pas prise en charge. (Exception de HRESULT : 0x80131515) Tentative de chargement d'un assembly … partir d'un emplacement r‚seau qui aurait entraŒn‚ l'utilisation de l'assembly en mode Bac … sable (sandbox) dans les versions ant‚rieures du .NET Framework. Cette version du .NET Framework n'activant pas la strat‚gie CAS par d‚faut, ce chargement peut ˆtre dangereux. Si ce chargement n'est pas destin‚ … utiliser l'assembly en mode Bac … sable (sandbox), activez le commutateur loadFromRemoteSources. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkId=155569.


--- EXCEPTION #1/6 [NotSupportedException]
Message = "Tentative de chargement d'un assembly … partir d'un emplacement r‚seau qui aurait entraŒn‚ l'utilisation de l'assembly en mode Bac … sable (sandbox) dans les versions ant‚rieures du .NET Framework. Cette version du .NET Framework n'activant pas la strat‚gie CAS par d‚faut, ce chargement peut ˆtre dangereux. Si ce chargement n'est pas destin‚ … utiliser l'assembly en mode Bac … sable (sandbox), activez le commutateur loadFromRemoteSources. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkId=155569."
ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException.InnerException
ClassName = System.NotSupportedException
HResult = COR_E_NOTSUPPORTED=80131515


--- Outer ---


--- EXCEPTION #2/6 [FileLoadException]
Message = "Impossible de charger le fichier ou l'assembly 'file:///D:\Program Files\Resharper\JetBrains.Platform.DocumentManager.dll' ou une de ses d‚pendances. L'op‚ration n'est pas prise en charge. (Exception de HRESULT : 0x80131515)"
ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException
ClassName = System.IO.FileLoadException
InnerException = "Exception #1 at Root.InnerException.InnerException.InnerException.InnerException.InnerException"
HResult = COR_E_NOTSUPPORTED=80131515
Source = mscorlib
FileLoad_FileName = "file:///D:\Program Files\Resharper\JetBrains.Platform.DocumentManager.dll"
StackTraceString = "
  … System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
     … System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
     … System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
     … System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
     … System.Reflection.Assembly.LoadFrom(String assemblyFile)
     … JetBrains.Application.Parts.FileBasedPartCatalogueAssemblyBinder.JetBrains.Application.Parts.IPartCatalogueAssemblyBinder.BindToRuntimeAssembly()
"


--- Outer ---


--- EXCEPTION #3/6 [InvalidOperationException]
Message = "Could not bind a part catalog assembly by loading from file "D:\Program Files\Resharper\JetBrains.Platform.DocumentManager.dll"."
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.InvalidOperationException
InnerException = "Exception #2 at Root.InnerException.InnerException.InnerException.InnerException"
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.ComponentModel
StackTraceString = "
  … JetBrains.Application.Parts.FileBasedPartCatalogueAssemblyBinder.JetBrains.Application.Parts.IPartCatalogueAssemblyBinder.BindToRuntimeAssembly()
     … JetBrains.Application.Parts.PartCatalogueAssembly.Bind()
"


--- Outer ---


--- EXCEPTION #4/6 [InvalidOperationException]
Message = "Could not load the runtime assembly for the part catalog assembly "Assembly: JetBrains.Platform.DocumentManager, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325"."
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
InnerException = "Exception #3 at Root.InnerException.InnerException.InnerException"
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.ComponentModel
StackTraceString = "
  … JetBrains.Application.Parts.PartCatalogueAssembly.Bind()
     … JetBrains.Application.Parts.PartCatalogueType.Bind()
     … JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context)
     … JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     … JetBrains.Application.Components.SingletonDescriptor.GetValue()
     … JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, IComponentDescriptor dsc)
"


--- Outer ---


--- EXCEPTION #5/6 [TargetInvocationException]
Message = "Component JetBrains.DocumentManagers.impl.IdeInMemoryDocumentFactory [Singleton, Corrupted] construction has failed."
ExceptionPath = Root.InnerException
ClassName = System.Reflection.TargetInvocationException
InnerException = "Exception #4 at Root.InnerException.InnerException"
HResult = COR_E_TARGETINVOCATION=80131604


--- Outer ---


--- EXCEPTION #6/6 [LoggerException]
Message = "Component JetBrains.DocumentManagers.impl.IdeInMemoryDocumentFactory [Singleton, Corrupted] construction has failed."
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = "Exception #5 at Root.InnerException"
HResult = COR_E_APPLICATION=80131600
StackTraceString = "
  … JetBrains.Application.Components.ComponentStorage.InstantiateDescriptors(IEnumerable`1 descriptors)
     … JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
     … JetBrains.Application.Environment.RunsProducts.RunProduct(Lifetime lifetimeProduct, IApplicationHost product, JetEnvironment environment, RunningProducts runningProducts, ILogger logger)
     … JetBrains.Application.Environment.RunsProducts.<>c__DisplayClass2.<.ctor>b__0(Lifetime lifetimeShouldStart)
     … JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)
     … JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
     … JetBrains.DataFlow.Property`1.PropertyChangeSignal.Acknowledge(Action`1 handler, AddRemove addremove)
     … JetBrains.DataFlow.Signal`1.<>c__DisplayClass2.<AdviseCore>b__0()
     … JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
     … JetBrains.Application.Environment.RunsProducts..ctor(Lifetime lifetime, EnvironmentZones zones, ReportsProductsAllowedToRun reportsProductsAllowedToRun, JetEnvironment environment, RunningProducts runningProducts, IApplicationHost product, ILogger logger, ZoneLicenseChecker zoneLicenseChecker, ZoneUserPreferenceChecker zoneUserPreferenceChecker, TimebombZoneFilter timebombZoneFilter, IInitializationStrategyProvider initializationStrategyProvider)
     … System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     … System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     … JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     … JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     … JetBrains.Application.Components.SingletonDescriptor.GetValue()
     … JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, String origin)
     … JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     … JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     … JetBrains.Application.Components.SingletonDescriptor.GetValue()
     … JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, IComponentDescriptor dsc)
     … JetBrains.Application.Components.ComponentStorage.InstantiateDescriptors(IEnumerable`1 descriptors)
     … JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
     … JetBrains.Application.Environment.JetEnvironment..ctor(Lifetime lifetime, JetHostParametersCaller host)
     … JetBrains.Application.Environment.JetEnvironment.<>c__DisplayClasse.<InternalCreate>b__b()
     … JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     … JetBrains.Application.Environment.JetEnvironment.InternalCreate(LifetimeDefinition lifetimeDefinition, JetHostParametersCaller host, JetEnvironment& environment)
     … JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
     … JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(Assembly assembly, HostInfo hostInfo, String[] args)
     … JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
"


Component JetBrains.IDE.TreeBrowser.ExportTreeManager [Singleton, Corrupted] construction has failed. Could not load the runtime assembly for the part catalog assembly "Assembly: JetBrains.Platform.Ide, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325". Could not bind a part catalog assembly by loading from file "D:\Program Files\Resharper\JetBrains.Platform.Ide.dll". Impossible de charger le fichier ou l'assembly 'file:///D:\Program Files\Resharper\JetBrains.Platform.Ide.dll' ou une de ses d‚pendances. L'op‚ration n'est pas prise en charge. (Exception de HRESULT : 0x80131515) Tentative de chargement d'un assembly … partir d'un emplacement r‚seau qui aurait entraŒn‚ l'utilisation de l'assembly en mode Bac … sable (sandbox) dans les versions ant‚rieures du .NET Framework. Cette version du .NET Framework n'activant pas la strat‚gie CAS par d‚faut, ce chargement peut ˆtre dangereux. Si ce chargement n'est pas destin‚ … utiliser l'assembly en mode Bac … sable (sandbox), activez le commutateur loadFromRemoteSources. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkId=155569.

2 comments
Comment actions Permalink

Hello Christophe

  Could you please try one of the following solutions:
    1) Remove Zone.Identifier NTFS Alternate Data Stream (http://msdn.microsoft.com/en-us/library/dn392609.aspx) from the ZIP file before using it.
    or:
    2) Use an unzip tool which won't read the Zone.Identifier NTFS Alternate Data Stream on the ZIP container and write it to each of the files it's extracting.
    or:
    3) Download the ZIP with a tool which won't add the Zone.Identifier NTFS Alternate Data Stream to it when saving to disk.

Thank you.

0
Comment actions Permalink

Hi,

Thanks for the reply. It did the trick. Now I can run resharper without errors.

Christophe.

0

Please sign in to leave a comment.