4,175 questions
0
votes
0
answers
15
views
Error passing data from read excel in paralel processing in .net core 2.2
Im facing a weird bug that my data seem like passing different column value instead of what I'm trying to pass as code bellow
var file = new FileHelper().UploadExcel(uploadedFile);
if (file != ...
0
votes
0
answers
65
views
Twilio Outbound Calling Issue
I am trying to make a call from a Twilio-registered number to a real phone number. The call connects successfully, but no voice is transferred. I want to achieve a realtime two way communication
Here ...
0
votes
1
answer
90
views
How to retrieve a lot of data in my asp .NET app efficiently?
and thanks for paying attention to my issue
Im trying to make a dashboard which shows every notable data in the team (created sales, lost sales, average response and so on).
So on the Controller I ...
-1
votes
1
answer
144
views
How to render the js content written in a cshtml in a script tag in ASP.Net Core MVC
I have a cshtml file where i declare all my route data.
FileName: _Routes.cshtml
@{ Layout = ""; Context.Response.ContentType = "text/javascript"; }
var commonRoutes = {
userList:...
-1
votes
1
answer
132
views
Getting part of a SAML object in c#
I have an ASP.NET Core app, and I am trying to set up a SAML 2.0 login system.
When I connect to the IdP, I get this object back:
saml2AuthnResponse.ClaimsIdentity.Claims;
And when I look through it, ...
1
vote
0
answers
106
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 ...
-1
votes
1
answer
775
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:
...
0
votes
0
answers
125
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 ...
0
votes
1
answer
105
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 ...
1
vote
1
answer
786
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 ...
0
votes
1
answer
670
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, ...
0
votes
1
answer
739
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 ...
0
votes
1
answer
89
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 ...
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 ...
0
votes
0
answers
764
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 ...