My ASP.NET website is running into this error:
System.Data.SqlClient.SqlException: 'Could not find stored procedure 'dbo.spLogActionsAdd'.'
I'm using .NET 4.8, Entity Framework, SQL Server 2022 (v15).
This procedure is working well on the server, so the code doesn't have any problem.
When I try to run it on my local computer I get this error. I checked the connection and the system connects to the correct database for sure.
How can I solve this problem?
1条答案
按热度按时间bpzcxfmw1#
it is probably because of not using correct name of database or schema before the name of stored procedure or connection string isn't correct.
I suggest you use full of stored procedure with the name of database and schema (if you have one) before your stored procedure name or review your connection string.