Exception thrown: 'System.Data.SqlServerCe.SqlCeException' in System.Data.SqlServerCe.dll

Lakshman Balasubramanian 21 Reputation points
2024-04-23T07:50:48.68+00:00

Hello All,

I facing an issue with the following error. When I build the project it successfully builds but then when I execute it I am not getting the output window. When checked, I noticed that I am facing an issue when I run. The following exceptions are thrown. It would be great if you could suggest me some fixes for these issues.

Issue:

User's image

In the output console, the following messages are shown:

Exception thrown: 'System.Data.SqlServerCe.SqlCeException' in System.Data.SqlServerCe.dll

Exception thrown: 'System.ArgumentNullException' in EntityFramework.dll

An exception of type 'System.ArgumentNullException' occurred in EntityFramework.dll but was not handled in user code

Value cannot be null.

Much appreciated for your time and work, TIA.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,620 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,755 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,274 questions
{count} votes