Many of us have ran into issue “This project references NuGet package(s) that are missing on this computer”. There are many different reason as to why someone will get this error while you build the solution. Error Details This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download […]
How to reset the selected file with input tag file type in Angular 9
In this short post, I will show how to reset the selected file with the input tag file type in Angular 9. The usage of file input in HTML is more common. It is always good to reset or clear the selected files after a successful process of the file on the server-side. Input File: […]
How to upload a file from Angular 9 with .NET Core Web API
In this post, I will show how to upload a file from Angular 9 with .NET Core. Uploading a file is the process of uploading a file from the user’s system to a hosted web application server. You may choose to store the file in the web server’s local disc or in the database. It […]
Working with optional body parameters in ASP.NET Core 2.2
Working with optional body parameters in ASP.NET Core 2.2 is now possible and I will show how to solve the issue in this post. Optional parameter exists in .Net for a long time. Specifying the default value used to be enough to mark them as optional. However, marking a body parameter in a Web API […]
How to upload a file with .NET CORE Web API 3.1 using IFormFile
In this post, I will show how to upload a file with .NET CORE Web API 3.1 using IFormFile. Uploading a file is a process of uploading a file from the user’s system to a hosted web application server. You may choose to store the file in the web server’s local disc or in the […]
How to upload a file in ASP.NET Web API
In this short post, I will show how to upload a file in ASP.NET Web API. In this example, I will be using FormData to upload a file from any UI technology like JavaScript, Angular and much more. Using FormData FormData provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. The form uses “multipart/form-data” as encoding type and FormData does the same. […]
How To Fix Your Angular App To Make it work in IE11
Introduction In this short post, I will show How To Fix Your Angular App To Make it work in IE11. In Angular CLI version 8 and higher, applications are built using differential loading, a strategy where the CLI builds two separate bundles as part of your deployed application. The first bundle contains modern ES2015 syntax, takes […]
Entity Framework Core dbcontextoptionsbuilder does not contain a definition for usesqlserver – Solved
Introduction In this post, I will show how to solve the error that shows “Entity Framework Core dbcontextoptionsbuilder does not contain a definition for UseSqlServer” with ASP.Net Core 3 and 3.1 framework. Overview We wanted to connect our ASP.NET Core application with MS SQL. To do this, we configure a connection in the startup class. […]
How to Create an Azure Web App for containers
Introduction In this post, I show how to create an Azure Web App for containers and also explain what are containers. It has never been so easy to deploy container-based web apps in seconds. Just pull container images from Docker Hub or a private Azure Container Registry. Web App for Containers will deploy the containerized […]
Enabling Diagnostics Logging in Azure App Service
Introduction If you are looking at this post “enabling diagnostics logging” then you are already familiar with building and hosting web application with in a azure app service. You may also be looking for options to support your application. I will show how to use diagnostics logs that are available with in azure app service. […]