How To Deploy .NET Core Application On Linux
Net Core is a cross-platform framework, which means you can host your . Net application not only on Windows but on Linux too. Let’s take a look at how we can deploy our . Net core application on Linux to see how easy it is for you to do.
How To Mock MongoDB SDK Cursor/Methods For Unit Testing DAL In C#
Download Free .NET & JAVA Files API MongoDB is a widely used database and we usually come across situations where we have to unit test functions in DAL by mocking MongoDB SDK methods.
How To Convert Byte Array To String In C#
In this article, we will learn how to convert byte array to string in C#
How to enable auto attach debug in vs code
In this article, we will set up how we can enable auto-attach debugger in vs code.
How To Enable Cross-Origin Requests (CORS) In ASP.NET Core
The same-origin configuration prevents a malicious location from reading sensitive data from another location.
How To Find The First Date Of A Week From A Given Date In C#
Hello, in this blog we will write a program in a C# console application that accepts three parameters: the day, month, and year of a given date and returns the first date of the week based on that date.
How To Protect Static Files In ASP.NET Web Forms With The Help Of HTTP Handle
By default, IIS does not work with the ASP.NET runtime when static content like images, ZIP files, and PDFs are requested. By bypassing the ASP.NET runtime for static content, any URL authorization rules specified in ASP.NET are ignored. As a result, it is possible for unauthorized users to view static content that resides in folders that are protected via ASP.NET’s URL authorization. To protect our static content from unauthorized access, this is one of the way to implement it.
How To Make Custom Middleware In .NET 6.0
In order to avoid using in-line middleware in the Program.cs file, we will now create a custom middleware.
How To Implement Of Unit Test Using Xunit And Moq n .NET Core 6 Web API
Unit testing using xUnit and Moq will be covered in full here, step by step. For a fundamental grasp of unit test cases, I recommend reading my blog post below.