A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Mustafa Erdağlı, According to your description, the cause of the problem is that there is no database to use.
Question: Do I have to define sql server in Azure?
Answer : If you have a physical server locally and have a public IP address, or an intranet penetration tool (like Ngrok) that enables remote access to the 1433 database port, then you do not need to create a SQL Database on Azure(Or other cloud database service).
You also mentioned this I want to use sql server on my own computer.
My suggestion is that if you're just using it for individual developers or test environments, i.e. not very concerned about data security, then we can use ngrok and access the local database. For more specific steps, please refer to this link.
Tips
- Please ensure you have allowed Remote Access to the Database
- After you configured your sql server, you can test the connection info generated by ngrok in SSMS.
- After confirming the connection string is valid, you need to replace the previous one in
appsettings.jsonfile
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Jason Pan