Upload Single or Multiple Files in ASP.NET Core Razor Pages with Insights

In this article, I will explain some file upload insights and show how to upload single or multiples in app.net razor pages application. I will cover following points: File Upload approaches: Buffering and Streaming File upload security concerns File Upload Storage options Upload Single File in asp.net core razor pages   Upload Multiple files Storing files in physical storage and database Source Code >> GitHub … Continue reading Upload Single or Multiple Files in ASP.NET Core Razor Pages with Insights

Add-Migration : The term ‘Add-Migration’ is not recognized

Details error: Solution Simply, install Microsoft.EntityFrameworkCore.Tools package from nuget: Install-Package Microsoft.EntityFrameworkCore.Tools -Version 3.1.6 You can also use this link to install the latest version: Nuget package link Tips: Install latest stable version. Sometimes, the error persists because of cache, so restart can solve the issue without doing anything. Continue reading Add-Migration : The term ‘Add-Migration’ is not recognized

Failed to register URL “http://localhost:XXXX/” for site “..” application “/”. Error description: The process cannot access the file because it is being used by another process. (0x80070020)

Error: Failed to register URL “http://localhost:XXXX/” for site “SITE NAME” application “/”. Error description: The process cannot access the file because it is being used by another process. (0x80070020) **XXXX = port number Reason for this error: This error happens to me because I was using same solution for different project. I copied the solution and created another one in different location. I have done … Continue reading Failed to register URL “http://localhost:XXXX/” for site “..” application “/”. Error description: The process cannot access the file because it is being used by another process. (0x80070020)

Create SQL Server Database Project With Visual Studio. Create or compare two Databases.

Here, we are going to learn about SQL Server Database Project (Template) available in Visual Studio. I will cover following points: Introduction of SQL Server Database Project. Create New SQL Server Database Project. Import database schema from an existing database, a .sql script file or a Data-tier application (.dacpac) the Project. Publish to create new Database in SQL server. Compare Two Database and find differences. … Continue reading Create SQL Server Database Project With Visual Studio. Create or compare two Databases.

TFS Connection from Visual Studio

Steps to setup TFS from Visual Studio. Open Visual Studio and Click on Team -> Manage Connection. 2. Following screen will be appear.  Again Click on Manage Connection. 3. A Sign in window will be appear. Sign in to your Microsoft account. 4. Select the Project you want to connect. 5. Browse and locate your desired location of your PC local drive. 6. Click on … Continue reading TFS Connection from Visual Studio

Visual Studio Installation Guide for Starter

Step 1: Make sure your computer is ready for Visual Studio whether your computer supports Visual Studio 2017 or not Please check the system requirements. Apply the latest Windows updates. These updates ensure that your computer has both the latest security updates and the required system components for Visual Studio. Reboot the computer to ensure any pending installs or updates are completed and they don’t hinder … Continue reading Visual Studio Installation Guide for Starter

Change the Domain URL or Redirect URL based on Country or IP

There can be some requirements that redirect the page or may be block the access of some section or some part of website based on country. There can be some situation that you may need to change some contents based on country. Requirement: 1. To find the country when website is opened or find the country from IP address. Solution: This requirement can be catered … Continue reading Change the Domain URL or Redirect URL based on Country or IP