All Questions
Tagged with sql-server asp.net-core
1,189
questions
0
votes
1
answer
49
views
In web applications how to hide the sensitive data from software developers [closed]
We are developing an ASP.NET Core application using the MVC framework and SQL Server database. The application is intended for board members, and it's crucial that sensitive data remains inaccessible ...
0
votes
1
answer
63
views
Many-to-many relationship update in EF Core
In my two classes I created a many-to-many relationship:
public class Author
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[DisplayName(&...
0
votes
2
answers
60
views
How to select fields from two tables using LINQ
I am trying to select fields from two tables using the Join clause with LINQ, but I am getting this error:
System.InvalidCastException: 'Unable to cast object of type '<>f__AnonymousType213[...
0
votes
0
answers
54
views
Model Binding Issues
**Model Binding Issues **
I'm facing model binding issues in my ASP.NET Core app. The same code works with ResourceManagement1 database but fails with RMT database, though both have identical ...
1
vote
1
answer
108
views
ASP.NET Core Identity ApplicationUser Foreign Key Returning NULL
I have an old ASP.NET MVC project that uses Identity/SQL Server which has worked fine for over a decade and am now attempting to begin a new version that uses ASP.NET Core.
I have extended the ...
0
votes
1
answer
70
views
SQL Server timeout during 2 minutes when scaling up my ASP.NET Core application in AWS ECS
I'm facing an issue with my ASP.NET Core 6 application running on AWS ECS (Fargate).
My app uses a SQL client to perform SQL requests. When for example 10 instances are running, everything is working ...
0
votes
2
answers
64
views
Moving database contexts to library project results in "FileNotFound" exception
I have a .NET Core 7 solution EIT which had only 1 project: EIT. This project uses Entity Framework Core to model and access the database. This worked fine.
Now I want to add several Windows services ...
0
votes
0
answers
54
views
Getting SQL exception data is null, this method or property cannot be called on null values
I have a C# application in which I am trying to fetch details from a SQL Server database. This database contains null values, and I want to handle these in the C# application.
My table schema is like ...
0
votes
1
answer
65
views
Unable to create a 'DbContext' of type NULL. The exception 'Object reference not set to an instance of an object.'
I have a problem with add-migration for my database in ASP.NET Core 8.0.
Here is the code
ApplicationDbContext:
public ApplicationDbContext(DbContextOptions<DbContext> options) : base(...
-1
votes
1
answer
108
views
Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904) [duplicate]
I cannot connect to the database and do migration even though my connection string works fine when I connect SQL Server Management Studio through Docker file, I wonder what am I doing wrong.
my ...
1
vote
1
answer
97
views
How to properly manage and dispose SqlConnection with SqlCredential in EF Core using Dependency Injection?
I am working on an ASP.NET Core project where I am using SqlCredential for database authentication, provided by a SqlCredentialProvider which is designed as a singleton to ensure a single instance ...
-2
votes
1
answer
44
views
The products chosen in form UrunStokGiris does not appear in dgvStokGiris in StokGiris form
I have created two forms StokGiris and UrunStokGiris (this one is like a sub form) on first form when you click search products the sub form opens then you are able to pick whatever you want from the ...
0
votes
1
answer
57
views
Local Microsoft SQL Server cannot be found from .NET Core Solution launched through Docker
The issue that I am encountering is that when I start a .NET Core project with Docker, the Microsoft SQL Server which runs locally (not as a container) cannot be found. The response of Swagger UI is ...
0
votes
1
answer
65
views
Error in Uploading an Image to a localhost SQL server using ASP.NET Core and C#
I want to send image itself to a SQL Server on localhost (send an image from my computer to localhost using ASP.NET Core web service written in C#).
I tried this in my client side:
OpenFileDialog opf =...
0
votes
2
answers
70
views
The ConnectionString property has not been initialized. How to solve this error? [closed]
My connection string is:
"ConnectionString": {
"DefaultConnectionString": "Data Source = DESKTOP-M39ULR1\\SQLEXPRESS;Initial Catalog = BanglaRunnersDb; Integrated Security=...