Open Closed

New Forms Module, error when updating or deleting a Question #1272


User avatar
0
NicholasDesignIT created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: Failed to load resource: the server responded with a status of 500 () data: {ActivatorChain: "Volo.Forms.Questions.QuestionController"}
  • Steps to reproduce the issue:
    1. Log to a new or existing Project with the Forms module installed as a project.*
    2. Enter the Forms module*
    3. Create a new or edit an existing form*
    4. Add a question*
    5. Change any question's parameters and wait for the update event or delete the question.*
    6. You will see a pop-up error message saying "An Internal Error occurred during your request!".*

From what I discovered while attempting to debug this problem the UI is not connecting to the endpoint in Volo.Forms.Questions.QuestionsController. In a non-tiered solution this error is not happening.

EDIT: the issue seems to happen when injecting Volo.Forms.Questions.QuestionAppService


2 Answer(s)
  • User Avatar
    0
    NicholasDesignIT created

    I have solved this issue. The problem was that Volo.Forms.Questions.IQuestionAppService was missing the inheritance to IApplicationService. Just modify line 8 to public interface IQuestionAppService : IApplicationService and that fixes the problem

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Glad to hear your problem solved. Closing the issue, feel free to create a new one whenever you have a new question.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19