Asp.Net Core 5.0 SignalR with SQL Dependency
Hello everyone and thanks for the help in advance. I am porting older Asp.Net 4.5 application to .Net Core 5. A few of these applications have SignalR with SQL Dependency notification which I ahve been unsuccessful in porting to the new platform. IN…
Web api azure 400 Bad Request
A strange thing happens to me, I have published an api with swagger, in a post method I have a body with some properties that are a string, in my api I check if one of them is null, in my local everything works fine, both in swagger and postman, but when…
MVC - Checkbox list value not passed home controller with existing list
I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…
asp.net core 3.1 HttpClient Error while copying content to a stream.
we have old file server with post and get requests to work with files. Now we need to bind our web server with old file server. But i'm getting Error while copying content to a stream. when PostAsync. What i'm doing wrong? [HttpPost] public async…
error al depurar con visual studio 2012
Me sale el siguiente mensaje al ejecutar el visual studio 2012
WebApplicationFactory for Multiple Interconnected web applications
Hello, I almost have similar scenarios (like the link below)... Let me explain first: I have WebAPI Application1 which has DoSomethingUsingBarApi() to communicate to WebApi of Application 2. I want to test the round trip. 1) My First Web…
VS 2022 stable does not have emmet in razor
Hi, i just installed Visual studio 2022 and it doesn't have emmet in "cshtml" files. Thanks
How to lock page while loading data correctly
In my ASP.NET Core MVC project when the user fills the form and hits send button, a message is shown to the user and the button is locked. The problem is even without filling the form on hitting the button it shows the message. I have client-side…
ViewBag in asp.net core
Do you know how to activate ViewBag in PageModel (x.cshtml.cs files) of asp.net core 3.1? Thanks
How to declare in the View?
How to declare in the View? @{ var kvp = ViewData["kvp"] as KeyValuePair<int, string>[]>; }
Getting "Unknown socket error" intermittently while making a call to .Net 5.0 API deployed on AWS ECS Cluster
Hi Community Members, I have 2 API's (A1 & A2) developed in .Net 5.0. Both are deployed on separate Amazon ECS cluster. A1 has 6 concurrent ECS tasks that performs operations like downloading excel files from S3, process them and then make a GET call…
Access directories and subdirectories in ASPNET CORE MVC
Hi, I want to access all the files and subdirectories of a file table (Sql). I can access the root directory "WebApiUploads_Dir" and return all the files on my interface. However, I don't see all the subdirectories and I would like to…
Dependency Injection Using IdentityUser
I got a razor page, I got the following code that I'd like to translate to C# code. @inject SignInManager<IdentityUser> SignInManager @inject UserManager<IdentityUser> UserManager How do I translate to C# code? Should I have it coded…
Convert Decimal to Date Value
Hi. I have a program in MVC. It gets data from AS400 such as birthday and display it but in decimal like 06051985. I want it to be displayed in 06/05/1985. How will I do it and where (View, Model, Controller?). Thanks.
.NET Core WCF Web Service with Cookies
Hi I have an app that calls a webservice and its been added as a reference but it needs to send the cookie information to be able to access the methods. Does anyone know how to do that? Thanks.
OpenIdConnectOptions Validate Method Throwing Exception in ASP.NET 6.0
I have a new ASP.NET Core 6.0 web app, and I am trying to configure OpenID Connect (OIDC) in the Program.cs file. I am using "Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" in my .csproj file. This is the code so…
mvcChecklist list Add one row upon one checkbox selction instead of AddRange
I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…
icorprofilercallback get parent thread id of the a thread
I'm using icorprofilercallback2 to track the performance of all http requests in my application. I do keep track of methods using the thread ids. The http request is making webservice call to other server. It seems this webservice call gets executed…
Which changes are necessary for upgrading to React 18 and not using typescript eslint ?
Hi, I have created a project using Asp.Net MVC Core 6 using react template. Now I upgraded the ClientApp from react 17.0.2 to react 18. This is my package.json file after performing upgrade. { "name": "test web",…