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

AspectInjector|2.8.1 : error AI_ERR0: Processing failure: System.NotSupportedException: Arg_NotSupportedException #228

Open
tuanhle94 opened this issue Apr 18, 2024 · 0 comments
Labels

Comments

@tuanhle94
Copy link

Environment (please complete the following information):

  • OS: linux-x64
  • Framework: net6.0
  • Type of application: REST API
  • Version of AspectInjector: 2.8.1

Describe the bug

AspectInjector|2.8.1 : error AI_ERR0: Processing failure: System.NotSupportedException: Arg_NotSupportedException

 at Mono.Cecil.MetadataBuilder.AddLocalScope(MethodDebugInformation method_info, ScopeDebugInformation scope)
 at Mono.Cecil.MetadataBuilder.AddMethodDebugInformation(MethodDebugInformation method_info)
 at Mono.Cecil.Cil.PortablePdbWriter.Write(MethodDebugInformation info)
 at Mono.Cecil.Cil.CodeWriter.WriteResolvedMethodBody(MethodDefinition method)
 at Mono.Cecil.Cil.CodeWriter.WriteMethodBody(MethodDefinition method)
 at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
 at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
 at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
 at Mono.Cecil.MetadataBuilder.AddTypes()
 at Mono.Cecil.MetadataBuilder.BuildTypes()
 at Mono.Cecil.MetadataBuilder.BuildModule()
 at Mono.Cecil.MetadataBuilder.BuildMetadata()
 at Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__2_0(MetadataBuilder builder, MetadataReader _)
 at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
 at Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata)
 at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
 at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
 at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
 at Mono.Cecil.ModuleDefinition.Write(WriterParameters parameters)
 at Mono.Cecil.AssemblyDefinition.Write(WriterParameters parameters)
 at FluentIL.PatcherBase.WriteAssembly(AssemblyDefinition assembly, Boolean writeSymbols, Boolean verbose)
 at FluentIL.PatcherBase.Process(String assemblyFile, IAssemblyResolver resolver, Boolean optimize, Boolean verbose)
 at FluentIL.PatcherBase.Process(String assemblyFile, IReadOnlyList`1 references, Boolean optimize, Boolean verbose)
 at AspectInjector.Compiler.Execute(String filename, IReadOnlyList`1 references, Boolean optimize, Boolean verbose). Please submit an issue to https://github.com/pamidur/aspect-injector

AspectInjector : error AI_FAIL: Aspect Injector processing has failed. See other errors.

To Reproduce
This happens when I run dotnet publish. Running dotnet build works fine. My REST API is using Amazon API Gateway service. I'm not sure how to debug this issue since these error messages do not show where the error occurs in my code specifically.

@tuanhle94 tuanhle94 added the bug label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant