Problem with login error (membership db) after first time published on Azure

I am facing an issue with publishing a membership database on Azure. I have tried a few times, and it works locally but throws an error after rendering in production. The error message says: "An error occurred while processing your request. Request ID: 00-dc12ebb3872541d31a70e2145c57c5d0-62ae52ee17aa83ba-00 Development Mode Swapping to Development environment will display more 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."