Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Restarts cause exception since 13.1 #13654

@tonybaloney

Description

@tonybaloney

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Since upgrading to 13.1, when I restart services from the portal it adds this exception to the console trace (this service is not a .NET service)

System.IO.FileNotFoundException: Could not load file or assembly 'JsonPatch.Net, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17ed63f672b0e278'. The system cannot find the file specified.
File name: 'JsonPatch.Net, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17ed63f672b0e278'
   at Aspire.Hosting.Dcp.DcpExecutor.CreatePatch[T](T obj, Action`1 change) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2299
   at Aspire.Hosting.Dcp.DcpExecutor.CreatePatch[T](T obj, Action`1 change) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2299
   at Aspire.Hosting.Dcp.DcpExecutor.<>c__DisplayClass88_0.<<StopResourceAsync>b__0>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2340
--- End of stack trace from previous location ---
   at Polly.ResiliencePipeline.<>c__9`2.<<ExecuteAsync>b__9_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.Outcome`1.GetResultOrRethrow()
   at Polly.ResiliencePipeline.ExecuteAsync[TResult,TState](Func`3 callback, TState state, CancellationToken cancellationToken)
   at Aspire.Hosting.Dcp.DcpExecutor.StopResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2319
   at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.StopResourceAsync(String resourceName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 503
   at Aspire.Hosting.ApplicationModel.CommandsConfigurationExtensions.<>c.<<AddLifeCycleCommands>b__0_5>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/CommandsConfigurationExtensions.cs:line 92
--- End of stack trace from previous location ---
   at Aspire.Hosting.ApplicationModel.ResourceCommandService.ExecuteCommandCoreAsync(String resourceId, IResource resource, String commandName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceCommandService.cs:line 138

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions