Closed Prutpan closed 3 years ago
Prutpan,
Based on this error message, I'd recommend checking two things:
The Web.config file is found in the Presentation folder: https://github.com/matthewrenze/clean-architecture-demo/blob/master/Presentation/Web.config
Here's what the connection string is currently set to:
<connectionStrings>
<add name="CleanArchitecture" connectionString="Data Source=(local);Initial Catalog=CleanArchitecture;Integrated Security=true" providerName="System.Data.SqlClient" />
</connectionStrings>
Here are some example SQL Server connection strings for various situations that might be helpful: https://www.connectionstrings.com/sql-server/
Please let me know if this resolves the issue you're having or if you need any other assistance.
Thanks!
Matthew
Matthewrenze,
Thanks for your reaction. The solution you offered resolved the issue! I had to check my connection string.
Greetings, Prutpan
When running the demo app and going to for example the 'Customers' page. I get the following error: 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)'