Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ArgumentOutOfRangeException: Non-negative number required. #40

Open
VinS101 opened this issue Aug 15, 2019 · 0 comments
Open

System.ArgumentOutOfRangeException: Non-negative number required. #40

VinS101 opened this issue Aug 15, 2019 · 0 comments

Comments

@VinS101
Copy link

VinS101 commented Aug 15, 2019

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.d__26.MoveNext() XgApp

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant