Skip to main content

Questions tagged [asp.net-core-2.0]

Use this tag for questions specifically related to ASP.NET Core 2.0, in addition to using the 'ASP.NET Core' tag.

asp.net-core-2.0
1 vote
0 answers
92 views

Bulk Insert data from Excel to SQL database that contains foreign key

I have an Excel file with up to 4000 rows and 10 columns of data, and I want to insert these records into the database. Some columns are titles of another table of the database and I must find Id of ...
Farzaneh Talebi's user avatar
-1 votes
1 answer
561 views

Issue on migrating from .NET Core 2.2 to .NET 6

I recently migrated my app from .NET Core 2.2 to .NET 6 and upgraded the C# language from C#8 to C#10. The app uses SQL Server and it's based on database first. After migration, I noticed 2 changes: ...
M G's user avatar
  • 37
1 vote
0 answers
543 views

Error 500 HTTP Request with body data length bigger than 100MB on C# API

We have developed an ASP.NET Core 2.0 Web API in C# created through a Visual Studio template. It has been running for years and we have never had any performance issues. Until recently, we haven't had ...
amelian's user avatar
  • 446
0 votes
0 answers
98 views

EntityMaterializerSource - Handling Datetime

I need to rewrite a code that transforms dates, but I'm still learning C# and .NET, so I'll put part of my code here. this code was made in net core 2.1 public class ...
Daniel Kaghofer's user avatar
0 votes
1 answer
83 views

how to set the output type List<string> in a middleware in .NET Core 2.1?

I have this middleware class when I want to show a List<string> in the output: namespace WebAspNetCore2_1 { public class LearningMiddleware { private readonly RequestDelegate ...
Alfonso Castañeda's user avatar
1 vote
1 answer
591 views

ASP.NET Core 2.0 set focus on a input element

I have an older ASP.NET Core MVC razor partial form with 2 input fields, I am trying to set the focus on the first input field on the form load, and when the user changes the value I want to then ...
Thomas Frink's user avatar
0 votes
1 answer
541 views

Find which target framework application is building on?

I have old .NET Core project. Under application properties the project's Target framework is .NET Core 2.0 But on the build server We don't have 2.0 SDK installed. Instead we have other SDK versions, ...
LP13's user avatar
  • 33.1k
0 votes
1 answer
630 views

.Net Core 2.1 Error 413 on multipart/form-data POST only on IIS not IIS Express

I'm hitting a problem with multipart/form-data POST uploads on IIS. My client is an Angular SPA and my backend is on .Net Core 2.1 (I know it's old). The backend project is published as Self-Contained ...
GeofoxCoding's user avatar
0 votes
1 answer
83 views

How to modify web api to return message not matched when compare excel function return false?

I work on asp.net core 2.2 i face issue I can't modify web api to display message "Not Matched Compare" when compare excel function return false (areIdentical == false) . web api below ...
ahmed barbary's user avatar
2 votes
1 answer
1k views

Authorize attribute is redirecting me to Login action even If I signed in successfully

I am working on simple login signup in ASP.NET core application. I am using SignInManager class for user to get signin. When user tries to login the following function will get executed: When the ...
barath thangam's user avatar
0 votes
0 answers
621 views

SqlDataAdapter.Fill is very slow with multiple result set

In my stored procedure, I am returning 13 tables. In management studio, proc is taking around 150ms-250ms to execute which is fine. In my asp.net core (c#) project, I filled the dataset with that ...
Jitendra Pancholi's user avatar
1 vote
1 answer
3k views

ASP.NET Core 2.1 MVC - Not being able to set the cookie received from the web api response

My ASP.NET Core 2.1 based MVC (client) application consumes webapi. Client application url: http://testdomain.com:8458/ Web Api url: http://testdomain.com:8404/ On web api action method setting up ...
191180rk's user avatar
  • 835
0 votes
0 answers
186 views

Routing edit/id in asp.net core application with angular not working

I am learning building application using angular and asp.net core using these videos on this link. Everything works fine except the edit of a component. If I give a URL like below, it goes to the ...
devvab's user avatar
  • 109
0 votes
0 answers
976 views

How to get Windows loggedin username in IIS defind anonymous + windows authentication

framework : ASP.NET CORE 2.2 as web-api Server: IIS-10 (Windows server 2016) I need to work with both WindowsAuthentication and AnonymousAuthentication. I have these 2 options to somehow get the ...
Guy E's user avatar
  • 1,867
0 votes
1 answer
430 views

How to get Antiforgery token before sending response?

I have ASP.NET Core application which auto validates every POST request for AntiforgeryToken: services.AddMvc(options => { options.Filters.Add(new AuthorizeFilter(...
LP13's user avatar
  • 33.1k

15 30 50 per page
1
2 3 4 5
279