【.Net Core】發佈後連不上MS SQL問題 出現Error. An error occurred while processing your request.

.Net Core

Error. An error occurred while processing your request.

Development Mode

在VS2019測試都連的上其他位置的SQL Server ,但發佈後確出現Error. An error occurred while processing your request

原來發佈是用可攜式

改成獨立式就可以了