Vignesh Arvind
Vignesh Arvind

Reputation: 611

How to configure Azure DevOps CI-CD pipelines for ASP.NET Core with Angular?

I have created the CI Pipeline for ASP.NET Core with Angular and the CI process worked without any issues. But after the deployment it always shows this error:

Error. An error occurred while processing your request.

Request ID: 0HLNE88S5VTHH:00000003 Development Mode

Swapping to the Development environment displays detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

Upvotes: 0

Views: 489

Answers (1)

Mengdi Liang
Mengdi Liang

Reputation: 18958

This may caused by you did not specified the ConnectionStrings in your appsettings.json file.

You'd need to add the key which generated in azure or any other database service to the argument:ConnectionString.

Try with add below script to your appsettings.json file:

"Data": {
    "DefaultConnection": {
      "ConnectionString": "{key}"
    },

Upvotes: 1

Related Questions