API Development and Deployment Issue – Remote API Server

Hello,

We are currently working on customizing IT Shop by creating APIs. Our setup involves remote api and app servers. For Angular development, we follow a straightforward process: we update the url in the environment.ts file (qer-app-portal) to point to our remote API server, modify the code, recompile, and test the output at localhost:4200. This approach works seamlessly.

However, we are trying to adopt a similar workflow for API development but are facing issues. Here’s our process:

API Development & Deployment Process:

  • Developing an API in Visual Studio 2022.
  • Needed references are being copied and pasted from the remote server.
  • Not running a local API server for debugging.
  • After building the project, we create the DLL file and manually copy it to the remote API server.
  • Restarting IIS after deployment.

Issue:

  • After copying the DLL to the server and restarting IIS, the API server stops working.
  • If we remove the DLL and restart IIS again, the API server works fine.
  • Even when testing with a basic "Hello World" API, the issue persists.

Additional Details:

  • After restarting IIS, I checked the logs and found an error related to decompression of qer-app-portal to ../App_Data/WebCache/html/qer-app-portal, stating that the json file in that path already exists.
  • I tried deleting the file and restarting IIS, but got the same error.

Has anyone encountered a similar issue or can suggest best practices for deploying APIs in this kind of setup?

Thanks in advance!