abp icon indicating copy to clipboard operation
abp copied to clipboard

Can not stop an application with state: Stopped

Open hamzash750 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description

Problem

An error has occured! Can not stop an application with state: Stopped

Details

Volo.Abp.Studio.AbpStudioException: Can not stop an application with state: Stopped at async Task Volo.Abp.Studio.Running.ApplicationRunner.iBIAJ1KAvU(bool ) at async Task Volo.Abp.Studio.Running.ApplicationRunner.StopAsync(bool force) at async Task Volo.Abp.Studio.UI.Solutions.Items.RunProfiles.RunnableApplicationUIModel.StopAsync() at async Task Volo.Abp.Studio.UI.ViewModels.SolutionRunner.Items.RunnableApplicationItemViewModel.R7Jfm5E8LO(bool ) at async Task Volo.Abp.Studio.UI.ViewModels.SolutionRunner.Items.RunnableApplicationItemViewModel.ChangeStateAsync()

Version

1.0.1

Operation System

Windows (Default)

Solution Configuration

  • Template: microservice
  • Created ABP Studio Version: 0.9.23
  • Current ABP Studio Version: 1.0.1
  • Multi-Tenancy: Yes
  • UI Framework: angular
  • Theme: leptonx
  • Theme Style: system
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: sqlserver
  • Mobile Framework: none
  • Public Website: No
  • Include Tests: Yes
  • Dynamic Localization: Yes
  • Kubernetes Configuration: Yes
  • Grafana Dashboard: Yes
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • TextTemplateManagement
    • AuditLogging
    • OpenIddictAdmin

Other information

This issue has been reported from ABP Studio.

hamzash750 avatar Jul 15 '25 09:07 hamzash750

When I run the service, sometimes an exception occurs at the application level, causing ABP Studio to close unexpectedly. After reopening the project, the "Start" button is disabled. To resolve this, I manually terminate the process using the port number via Command Prompt. Once the port is released, everything works normally again, even though I didn't explicitly stop the previous run. I would like to find a proper way to stop and restart the service cleanly in such scenarios. Attached screen shot

Image Image

hamzash750 avatar Jul 15 '25 10:07 hamzash750

Now, we are hiding start/stop menu item if the applications is externally started. So, I'm closing this issue.

ismcagdas avatar Sep 15 '25 08:09 ismcagdas