Problem with publishing asp.net framework app to azure BadRequest 400

Mikolaj Palacz 6 Reputation points
2021-08-03T14:13:00.477+00:00

Hello,
I created a database in azure sql database and connected it to my asp.net api with defaultconnection. I am using identity and my register function works fine on local machine, but after publishing to azure, i get 400 bad request without any error message. Other functions like /token works completely fine. Anyone knows what can cause a problem?

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,040 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mikolaj Palacz 6 Reputation points
    2021-08-04T07:44:19.193+00:00

    120423-image.png

    I'm sorry it's occured that i am dumb. I forgot that i added this line of code to my API.

    1 person found this answer helpful.
    0 comments No comments