Category Archives: .NET

Resolving “make sure that the controller has a parameter less public constructor” error in WebAPIs

Hi, If you’re working with WebAPIs and in the your API Controller, you have a constructor that takes parameters which are being injected by Unity or any IoC Container, then there might be a case where you will get the … Continue reading

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

Resolving “Not Authorized to Connect” error while running Azure Service Fabric application

Hi, If you’re relatively new to Azure Service Fabric, then there is a chance you might run into this issue wherein you start debugging your service fabric application in Visual Studio 2015 and you run into this exception. “Not Authorized … Continue reading

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

Resolving “CloudConfigurationManager does not exist in the current context” compiler error

Hi, In case you get are trying to access the cloud configuration file in your Azure Cloud service and get the error “CloudConfigurationManager does not exist in the current context” on CloudConfigurationManager class, then all you need to do is add … Continue reading

Posted in .NET, C# | Tagged , | 4 Comments

Resolving “Mapper not initialized. Call Initialize with appropriate configuration.”

Hi, In case you’re using AutoMapper to map entity objects; something like below line of code Mapper.Map<User, UserEntity>(user); and if you get the exception, “Mapper not initialized. Call Initialize with appropriate configuration.“, then it means, well, that you’ve not initialized … Continue reading

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

Recreate azure cloud service package with correct instance size from a package having incorrect VM size

Hi, Consider a scenario where you’re given azure cloud service packages for deployment and you don’t have access to the code base used to create that package. And in case one of the package’s ServiceDefinition.csdef file has an incorrect VM … Continue reading

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

Add Bot Framework C# Template to Visual Studio 2015

Hi, In this post, we’ll see how to add the Microsoft Bot Framework’s template to Visual studio’s New Project dialog. Follow the below steps to add it to the New Project Dialog. Download the C# VS template from here. It … Continue reading

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

[TFS] Label older code base in TFS branch despite new check-ins

Hi, Consider a scenario where you need to label a TFS branch at end-of-day everyday and you missed labelling it yesterday and today there are quite a number of check-ins already committed in the branch. How do you label yesterday’s … Continue reading

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

Difference between different display modes of SplitView in XAML

Hi, The below graphic gives a very clear explanation of the differences between types of DisplayModes of SplitView in XAML. Source : https://www.microsoftvirtualacademy.com/en-US/training-courses/a-developer-s-guide-to-windows-10-12618?l=xYZeMRpRB_6405095281 Hope this Helps!

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