Author Archives: amoghnatu

Enable TLS1.1 and TLS 1.2 in Fiddler

Hi, This post will explain how you can enable TLS 1.1 and TLS 1.2 in fiddler so you can test your Web Apis with TLS 1.1 or 1.2. In order to do this, navigate to Tools –> Options –> HTTPS … Continue reading

Posted in General | Tagged , , , , , | 4 Comments

An easy to miss gotcha in Azure Service Fabric service with multiple listeners

Hi, If you’ve ever worked with Azure Service Fabric, then there is a high probability that you will have a service that creates multiple listeners, either to multiple ports to accept requests from different protocols or listeners to Azure services … Continue reading

Posted in .NET, C# | Tagged , , , | Leave a comment

CSS Browser Compatibility settings in Resharper

Hi, This post will show you how we can enable/disable browser compatibility settings for CSS in Resharper. This setting is very useful which shows us clearly whether a particular css selector or other css features are compatible with specific versions … Continue reading

Posted in .NET, General | Tagged , , , , , , | Leave a comment

Fixing issue of not being able to add view to Database First Entity Framework model

Hi, If you’re using Database First entity framework (EF) model, you might require to use views. Now to add views to the EF model, the process is straight forward, just the same way we add Tables. However, there is a … Continue reading

Posted in .NET, General | Tagged , , , , , , , , , | 1 Comment

Add file header to new class/other items automatically on creation in Visual Studio

Hi, This post shows how we can make little changes to the Class template in visual studio so that we can add a file header to a newly created class. It’s generally a good practice to add a file header … Continue reading

Posted in General | Tagged , , , | 4 Comments

Creating WCF Service hosted in Azure Service Fabric over Https with Basic Authentication

Hi, This post will show how we can create a WCF Service in Azure Service Fabric and how to configure Basic authentication to it using simple username and password validation. Follow the below steps in the given order: Create Service … Continue reading

Posted in .NET | Tagged , , , , , , , , | Leave a comment

Entity Framework not saving data to database on context.SaveAsync() while using Autofac

Hi, Recently I was using Entity Framework with a DB first approach in an application and using the Repository pattern with Unit of Work to have easy management of DB operations. So my repository constructor accepted an IDataContext object (IDataContext … Continue reading

Posted in .NET, General | Tagged , , , , , , , | Leave a comment

Resolving Azure Data Lake Authorization Issue

Hi, While trying to access Azure Data Lake Store from my application, I encountered the below exception. The client ‘guid’ with object id ‘guid’ does not have authorization to perform action ‘Microsoft.Authorization/permissions/read’ over scope ‘/subscriptions/guid…. Resolution : I realized that … Continue reading

Posted in .NET, General | Tagged , , , , , | Leave a comment

Resolving IContainer in Constructor when using Autofac

Hi, While using Unity as an Inversion of Control and Dependency Injection container, there is an option to directly inject the container into a class’s constructor by placing the IUnityContainer interface as a constructor parameter. This container can then be … Continue reading

Posted in General | Tagged , , , , | Leave a comment

Resolving “Value does not fall within the expected range” ArgumentException while reporting custom health events in Azure service fabric

Hi, If you’re working with Azure Service Fabric, there are chances you might be using the cluster Health Management APIs provided by SF SDK. And if you’re using those, then you would obviously be posting some custom health events at … Continue reading

Posted in .NET, General | Tagged , , , , , , , , | Leave a comment