Monday, November 25, 2019

Run ASP.NET CORE App in Development Mode

Getting the following message and need to run ASP.NET Core app in Dev Mode...

Development Mode
Swapping to the Development environment displays detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

1. Go to IIS server / your website root
2. Open Web.Config file
3. Add the following environment variable...

 4. Save and reload page

Wednesday, September 18, 2019

Migrate Work item from one Azure DevOps/TFS project to another

If you are struggling with migrating work items from one project to another, this free tool is for you at GitHub.

Some of the key migration features include:
  • Work item links
  • Attachments
  • Git commit links
  • Work item history
  • Tagging of the source items that have been migrated

Tuesday, September 17, 2019

Microsoft Secure Development Lifecyle

The Microsoft SDL introduces security and privacy considerations throughout all phases of the development process, helping developers build highly secure software, address security compliance requirements, and reduce development costs. The guidance, best practices, tools, and processes in the Microsoft SDL are practices we use internally to build more secure products and services. Since first shared in 2008, we’ve updated the practices as a result of our growing experience with new scenarios, like the cloud, Internet of Things (IoT), and artificial intelligence (AI).


Find out more:



Thursday, September 12, 2019

Azure Blogs - Articles from 2-Sept-2019 to 8-Sept-2019

AI + Machine Learning
Covering: Azure Batch AI, Azure Bot Service, Microsoft Genomics, Machine Learning services, Machine Learning Studio, Cognitive Services, Bing APIs, Computer Vision API, Content moderator, Custom Services, Emotion API, Face API, Language Understanding (LUIS), Linguistic Analysis API, QnA Maker API, Speaker Recognition API, Text Analytics API, Translator Speech API, Translator Text API, Web Language Model API

Covering: Azure Databricks, HDInsight, Data Factory, Stream Analytics, Data Lake Analytics, Event Hubs, Power BI, Azure Analysis Services, Apache Spark for HDInsight, Apache Storm for HDInsight, R Server for HDInsight, Data Catalog

Covering: Virtual Machines, Functions, Batch, Service Fabric, Virtual Machine Scale Sets, Cloud Services, Linux Virtual Machines, SAP HANA on Azure Large Instances

Covering: Container Registry, Container Instances, Azure Kubernetes Service (AKS), Web App for Containers

Covering: Azure SQL Database, Azure Cosmos DB, SQL Data Warehouse, Redis Cache, SQL Server Stretch Database, SQL Server on virtual machines, Table storage, Azure Database for PostgreSQL, Azure Database for MySQL

Developer Tools
Covering: Visual Studio, Visual Studio Code, SDKs, Developer tool integrations, CLIs, Blockchain Workbench

Covering: Azure DevOps, Azure DevTest Labs, DevOps tool integrations, Azure Lab Services

Covering: Azure Active Directory, Multi-factor Authentication, Azure Active Directory Domain Services, Azure Active Directory B2C
No Links Available

Covering: Service Bus, Logic Apps, Event Grid, API Management, Blockchain

Internet Of Things
Covering: IoT Hub, IoT Suite, IoT Edge, IoT Central, IoT solution accelerators, Time Series Insights, Azure Maps, Azure Sphere

Management and Governance
Covering: Backup, Site Recovery, App Insights, Azure Advisor, Sceduler, Automation, Log Analytics, Azure Monitor, Security & Compliance, Protection & Recovery, Automation & Control, Insight & Analytics, Azure Service Health, Microsoft Azure portal, Azure Resource Manager, Cloud Shell, the Azure Resource Graph, Azure Policy, Cost Management, Azure Blueprints

Covering: Media services, Encoding, Live and On-Demand Streaming, Azure Media Player, Content Protection, Media Analytics, Video Indexer

Covering: Azure Database Migration Service, Azure Migrate, Data Box
No Links Available

Covering: App Service (Mobile), Notification Hubs, Mobile apps, API apps, Visual Studio App Centre, Xamarin

Covering: Content Delivery Network, ExpressRoute, Azure DNS, Firewall, Virtual Network, Traffic Manager, Load Balancer, VPN Gateway, Application Gateway, Network Watcher

Covering: Azure Information Protection, Key Vault, Security Center, Azure DDoS Protection, Azure Advanced Threat Protection
No Links Available

Covering: Storage, StorSimple, Data Lake Store, Blob Storage, Disk Storage, Managed Disks, Queue Storage, File Storage, Storage Explorer, Archive Storage

Covering: App Service (Web), API Management, Content Delivery Network, Azure Search, Web apps, Azure SignalR Service

Wednesday, September 4, 2019

AZ-400 DevOps Exam

Since AZ-400 DevOps exam is quite popular lots of people ask me how to prep for the exam; for the starter:

Step-1 Have a look what exam is all about:

Step-2 Signup for free Microsoft training course
Microsoft AZ-400 Course: Implementing DevOps Processes

Step-3 Signup for free Azure and Azure DevOps account

Step-4 Do some labs

Step-5 Learn more about Azure DevOps

Go for it!

Monday, July 8, 2019

Validating SSL Certificate in .Net C#

.Net console application to get the site certificate to validate and show cert info.

using System;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Security;

namespace CertValidate

    class Program
        static void Main(string[] args)

            while (true) {

                Console.WriteLine("Enter Full URL");


        public static void CheckSite(string URL) {


            HttpWebRequest request = WebRequest.CreateHttp(URL);
            request.ServerCertificateValidationCallback += ServerCertificateValidationCallback;
            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { }

        private static bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)


            if (sslPolicyErrors == SslPolicyErrors.None)

                Console.WriteLine("Certificate OK");
                return true;
                Console.WriteLine("Certificate ERROR");
                return false;