Content
Enabling HTML, CSS, and JavaScript in Visual Studio 2022
I have updated the latest version of Microsoft Visual Studio 2022. Since I have books that concentrates on web development, I want to enable design time and runtime operation abilities on that framework. I am unsure which libraries to include, if…
Task Parallel Library
Hello , I have a small question using Parallelism in c# , why did Microsoft came up with Task Parallel Library(TPL) .. why they did not use only threads ? in other words what did TPL do the threads could not do.? Can some one help me to…


OWIN overwriting all claims for user in basic OIDC config
OWIN keeps overwriting all claims for the logged in OIDC user after about 5 minutes. I'm setting a claim called id_token which holds the encoded JWT token so that I can send an IdTokenHint for redirection from IdentityServer4 (but that issue also…


Migrating from Asp.Net Web Api to Core
Hello, We have a web API that has been running smoothly for 3-4 years. Now I want to upgrade it to Core Web API. I use logging, basic authentication, OAuth, and Unity in my Web API. Will I have a lot of problems with the upgrade? May I have your…


async Task c# webform
I need to create a webform with async Task When I click a button, I need to get return of async Task to webform lable Can anyone help me


Database design suggestion
Hi there, I have an ASP.NET web API application and am trying to upgrade it to Core. I am using EF 6, code first. I have this entity but the requirements changed. Now I have more than one price and currency for a product. How can I design the…


$Select query in OData does not list the userdefined datatype unless user defined datatype is added to $expand query
I'm using OData Version 2.0 I would need to get all my root level property on response data type while using $Select query in my oData query url. But $select query respond only for primitive data types like (Int, String, DateTime) and custom defined…


.net 6 module/feature structure
Hi, I'm not sure if it's the right place for my struggle. I'm looking for a documentation page, I think it's a Microsoft documentation, it's about .Net 6 web API modular/feature project structure. I couldn't find the page and I didn't bookmark…
How to create Web API project to retrieve Sharepoint Online list and result in JSON format
Hi I am new to API project with Sharepoint Online (MFA) to retrieve list items and result in JSON format. I want to ensure i am on the right track by using either WebAPI or Webservices in Visual Studio. or any other suggestions? Is there an project…


.Net Mvc with api controller authenticated by owin jwt auth but when calling protected actions in Http current User null
my web api hosted with mvc. mvc have cookie auth but i need to authenticate the web api with azure ad access token send by my another app so i use the owin jwt auth middleware but when try to access the action with [authorize] it returns authorization…


http request
error while debugging graphapi code


The .net clients - Channel Factory & HttpClient behaving differently for "Expect100Continue" header
I have WCF service hosted in a Custom Microsoft Web Server. I have tried to consume the services with TLS 1.3 and with Expect:100-Continue header by two .net provided clients. ServicePointManager.Expect100Continue = true; …


hello to you please I have a little problem I have a gridview in which I applied a display condition. I would put a button returns all the lines displayed when you click on it
<asp:GridView ID="Gridview1" class="mx-auto" runat="server" AutoGenerateColumns="False" OnRowDataBound="Gridview1_RowDataBound" KeyNames="Id_Task" …


Checkmarx Connection String Injection Issue on Excel File Uplaod
I'm using Checkmarx that scans source code and identifies security vulnerabilities within the code <asp:FileUpload ID="fuXlsWorkflow" runat="server" EnableViewState="true" /> <asp:RegularExpressionValidator…


How do I Pass the CheckBox Input From Razor View to the Controller
Please I have a concern/challenge with passing the Checkbox input from Razor View to Controller. The Form was created and everything works well with the checkbox parameter passed to the Controller. The challenge occurs when the form data was to be…


String was not recognized as a valid DateTime ,when pass value from gridview to database
When i am inserting Time values from gridview to database ,then it is giving me error below String was not recognized as a valid DateTime. on this line > foreach (GridViewRow row in this.GVTime.Rows) <asp:TemplateField…


Callback in Rest Api's
Hi, My question - from a 3rd party, my rest api will be called and for that we need to send a response after process (which might not be sent instantly), the response might take a day or two even. (Maybe a webhook or reverse api concept not sure).…


Store update, insert, or delete statement affected an unexpected number of rows (0).
Hi, During load testing my application, I am getting this error. Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Scenario being, I am…


Primitive Reconciliation
Hello, There is this primitive reconciliation being made with Excel. In the beginning, it was not a problem because the data was scarce, and comparing GUIDs by eye in excel was not difficult. Now the data is too much for visual inspection. So is…


Automapper How to set another property if source is null
Hello, I wonder if there is a way to set Pin to Serial if Pin is null. CreateMap<CouponDto, Coupon>() .ForMember(dest => dest.Pin, src => src.NullSubstitute("-")) .ForMember(dest =>…