Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
55 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 ...
Muhammad Hasan's user avatar
0 votes
1 answer
71 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 ...
Lap1's user avatar
  • 31
0 votes
1 answer
83 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:...
Ranjini's user avatar
  • 13
-1 votes
1 answer
82 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, ...
SkyeBoniwell's user avatar
  • 7,062
1 vote
0 answers
104 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
676 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
646 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
107 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
99 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
708 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
616 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.9k
0 votes
1 answer
686 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
86 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
702 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
  • 885
0 votes
0 answers
187 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
1k 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,907
0 votes
1 answer
452 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.9k
1 vote
1 answer
730 views

.NET Core 2 build is not working in .NET Core 3.1

All, I have a build server that has .NET Core 2.2.110 installed in it. For my new application, I need .NET Core 3.1. So I've installed .NET Core 3.1 in addition to .NET Core 2.2.110. When I hit dotnet ...
Raghavendra Rao's user avatar
8 votes
4 answers
30k views

Read records from JSON file in ASP.net Core (v2.1) WebAPI

I am new to asp.net core WebApi and I am trying to read data from a valid json file which is saved inside a folder called mydata inside my webapi /mydata/userData.json userData.json: { "users&...
user7050297's user avatar
0 votes
1 answer
1k views

.net core rest api post end - read query string from body

In .net core 2.1, On HTTP post endpoint, Is it possible to read query string parameter from body? sample request body: name="zakie"&country="uswest"&state="california&...
Zackie Khan's user avatar
0 votes
0 answers
126 views

Asp.NetCore2.1 how to copy text in clipboard

How to copy text to clipboard in asp.net core 2.1 ? i instal tetxcopy by nuget but version conflict occours.
hojjat.mi's user avatar
  • 1,534
3 votes
1 answer
3k views

How to display post body example by default in swagger UI from azure functions(2.0)

I'm new to swagger open API documentation. Integrating the Aliencube.AzureFunctions.Extensions.OpenApi.Core in azure function app 2.0. Here is the code : [FunctionName("TestFunction")] ...
prasanthi's user avatar
  • 616
3 votes
0 answers
538 views

Migrating from .NET Core 2.2 to .NET Core 3.0 resulting in Could not load type Microsoft.AspNetCore.Razor

I've recently been trying to migrate an existing .NET Core 2.2 WEB API project to .NET Core 3.1 with the aim of first migrating from .NET Core 2.2 to 3.0 then to 3.1. This solution contains contains ...
Ousmane D.'s user avatar
  • 56.3k
2 votes
0 answers
5k views

Unable to load shared library 'libdl' in dotnet2.1 running on linux container

I have a dotnet2.1 api running on Linux container (Debian Stretch) that is handling images, so it has a reference to System.Drawing. In dockerfile I have included as a last step the installation of ...
Oscar's user avatar
  • 13.9k
2 votes
1 answer
11k views

AADSTS50013: Assertion failed signature validation. [Reason - The key was not found., Thumbprint of key used by client: 'xxxx'

I have three applications participating the AzureAD OBO flow : Angular FrontEnd --> Registered with AzureAD as OIDC app ASP.NET Core Web API --> Registered with AzureAD as SAML app NAV OData ...
santosh kumar patro's user avatar
0 votes
1 answer
2k views

jQuery AJAX Post String to MVC Controller Null Parameter

I have a pretty simple AJAX call I am trying to make, which is a search string that will POST a value to a controller as a search string. $.ajax({ url: '/ResultsProcessing/AthleteLookup/n', ...
Matthew Warr's user avatar
1 vote
1 answer
2k views

.net core Windows Service vs Worker Template

This question is in continuation with this SO question. I just wanted to understand the differences between a Windows Service that is written using ServiceBase class like in this post and a windows ...
user_19240589's user avatar
0 votes
0 answers
2k views

How to download large file chunk by chunk in .net core Api

I am currently downloading file using return File(byteArray, filetype, filename); But this is not a solution for downloading large files above 500 MB or 2 GB. I need to stream file in chunk by chunk ...
Shridhar Gowda's user avatar
1 vote
2 answers
399 views

Enter a Catch Method in WaitAndRetryAsync

Goal: If you have tried the third time and it is not a success. Then you want to use another method. I would like to to prevent displaying a error message webpage. Problem: is it possible to enter a ...
HelloWorld1's user avatar
  • 14.1k
1 vote
1 answer
369 views

Can .net core 2.2 and 3.1 application slots coexist in the same app service?

We currently have two slots in azure app service: staging and production. We just migrated .net core 2.2 to 3.1 and tested it in a separate dev app service. We are about to publish the 3.1 app to ...
gordieb's user avatar
  • 251
1 vote
1 answer
542 views

How to call a function app Run from another Function app using calling function app dll and function.json

Upto now i used only one azure function http trigger do functionality. However, i got a new requirement to call a one azure function app F1 in another azure function app F2. I want to use the function ...
prasanthi's user avatar
  • 616
-1 votes
1 answer
3k views

JWT token authentication validation fails on Docker when HOST has time zone

I have a dotnet 2.1 running with Dockerfile build targeted for Linux, core api with JWT token authorization, it works fine on in aws on azure, is all great, except for when I run it independently on ...
SilentTremor's user avatar
  • 4,882
1 vote
1 answer
1k views

How to stop scoped service using Cancellation Token?

I am looking for a way to stop the Scoped background service using a Cancellation Token. I followed the following steps: ScopedAlertingService.cs namespace BackgroundTasksSample.Services { ...
Payal_Thakur's user avatar
0 votes
0 answers
327 views

How to add HTML attribute without attribute name using TagBuilder?

I am building a Input tag using TagBuilder. I want to build the input tag like below <input name="IsOkay" type="checkbox" {% if MyObject.IsOkay == true %} checked="checked&...
LP13's user avatar
  • 33.9k
0 votes
1 answer
781 views

Dotliquid cannot bind property of an object inside an array

I have a .NET Core application that is using dotliquid. From the try online it looks like I can bind a property of an object that is inside an array. Like {{user.tasks[0].name}} where tasks is a ...
LP13's user avatar
  • 33.9k
0 votes
1 answer
591 views

Is there any way to use order by clause in the table inside OnModelCreating in .net core

I want to use the order by clause in the code below. The model and the View have StartDatetime field in it. So the order by should use startDatetime desc in the code. Can anyone guide me on how to do ...
Aarav's user avatar
  • 3
0 votes
0 answers
313 views

Dynamically serve all files in a certain folder only after providing password in .NET Core 2.2

I have a web app in .NET Core that serves all files in a certain folder. Now before serving the files, a password is needed. Is this code sufficient or is there a loophole in it? using DownloadFiles....
AzureDevForSF's user avatar
0 votes
1 answer
565 views

I have an issue with a contact form. Works on localhost. When deployed its giving error when attempting to post it via the submit button

I have a simple contact form on my Godaddy hosted Asp.net core 2.0 Razor pages website. Everything works fine on localhost. When the website is deployed, If I click the submit button I receive an ...
Barry's user avatar
  • 1
2 votes
1 answer
3k views

Serilog override settings in appsettings.production with Net Core 2.2

I have an issue with serilog when i want to write to a database based on different environments. Serilog override my appsettings.production.json and always take the settings in appsettings.json ...
Kivo's user avatar
  • 425
1 vote
1 answer
1k views

how to post data without passing it to model .Net Core

I have this in my view <form class="d-inline-block" asp-controller=""> <div class="form-group mb-2 d-inline-block"> ...
aaarianme's user avatar
  • 282
1 vote
0 answers
262 views

Session Expires after 15-20 Minutes in asp.net core 2.0. Any solution Not working

Hello Buddies I hope you all good. I am having session expiration problem. it took weeks but not solved yet I hope I will get help from here. services.Configure<CookiePolicyOptions>(options =>...
Hafiz Muhammad Atif's user avatar
1 vote
0 answers
267 views

How to configure Dotnet-DEB packager to create folders, change permissions, and etc?

The most common way to distribute Linux Packages is via DEB File. For dotnet core, one can create packages via dotnet-DEB. https://github.com/qmfrederik/dotnet-packaging How do I add commands in the ...
user1034912's user avatar
  • 2,257
-2 votes
2 answers
130 views

C# class representation for this json

I need little help to create C# class to map below json response from FCM token info api (https://developers.google.com/instance-id/reference/server#get_information_about_app_instances): { "...
Naveed Ahmed's user avatar
  • 10.4k
1 vote
1 answer
93 views

.Net core api 2.2 request to Coldfusion Api character issue inserting to MSSQL db

I make the request to coldfusion api from .net core api as shown below Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); var httpWebRequest = (HttpWebRequest)WebRequest.Create("http:...
chatay's user avatar
  • 164
1 vote
1 answer
2k views

Using complex structures with AddEnvironmentVariables

Question How to handle complex structures, such as arrays, when using the ConfigurationBuilder's AddEnvironmentVariables approach for setting config. i.e. What would the environment variables be ...
JohnLBevan's user avatar
  • 24.3k
-1 votes
2 answers
833 views

How do I create HttpClient on ASP.Net Core 2.0 to prevent SNAT port exhaustion on Azure WebApps

To reuse HttpClient, I created a utility class like this on ASP.Net Core 2.0. public class HttpClientUtility { private static HttpClientUtility _singleInstance = new HttpClientUtility()...
hdlw's user avatar
  • 9
-1 votes
1 answer
827 views

How to remove items from Ilist

I have an IList , I also have a method which checks if the item is already in list and if it is I need it to be deleted/ removed and add again. private PurchaseItemViewModel ...
user565992's user avatar
0 votes
1 answer
2k views

call another actionresult from controller with multiple parameters netcore mvc

I have a method (MethodA) in my controller that needs to return another ActionResult (methodB) in that same controller, with some parameters as payload. For this I use a RedirectToAction(nameof(...
CMorgan's user avatar
  • 693

1
2 3 4 5
84