skip to Main Content

Error with database – "Value cannot be null. Arg_ParamName_Name" – Asp.net

I do a project in ASP.NET Core 6.0 and try to connect a database. Program.cs: using ClanSS.Data; using ClanSS.Data.Repository; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllersWithViews(); builder.Services.AddScoped<IRepository, Repository>(); builder.Services.AddDbContext<AppDbContext>(options => { options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")); }); var app = builder.Build(); if…

VIEW QUESTION

Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll Additional information: Error converting data type varchar to bigint. in C# – Asp.net

This Is My Codding i have face this type of error in my code (Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll Additional information: Error converting data type varchar to bigint Update Query:___________________________________ private void btnUpdate_Click(object sender, EventArgs e) { query = ("update…

VIEW QUESTION
Back To Top
Search