strongnamer icon indicating copy to clipboard operation
strongnamer copied to clipboard

System.ArgumentOutOfRangeException: Non-negative number required.

Open VinS101 opened this issue 5 years ago • 0 comments

This error happened after I installed Strongnamer on an ASP.NET MVC web application:

Severity Code Description Project File Line Suppression State Error The "StrongNamer.AddStrongName" task failed unexpectedly. System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count at System.IO.BinaryReader.ReadBytes(Int32 count) at Mono.Cecil.PE.ImageReader.ReadDebugHeader() at Mono.Cecil.PE.ImageReader.ReadImage() at Mono.Cecil.PE.ImageReader.ReadImage(Disposable`1 stream, String file_name) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at StrongNamer.AddStrongName.ProcessAssembly(ITaskItem assemblyItem, StrongNameKeyPair key, StrongNamerAssemblyResolver resolver) at StrongNamer.AddStrongName.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() XgApp

Keep in mind that my web app is signed using my own private key.

VinS101 avatar Aug 15 '19 18:08 VinS101