Posts

Showing posts from April, 2020

Fixed: The required column was not present in the results of a 'FromSql' operation in asp.net core EF core

In EF core you will face this error many times. Error:  The required column was not present in the results of a 'FromSql' operation. To fix this error either remove the column from mapped model or add UnMapped attribute.     public class Customer     {         /// <summary>         /// Gets or sets the ID for the customer         /// </summary>         [UnMapped]         public int CustomerName { get; set; }     } Some Essential Interview Questions

Fixed: Unable to get MSI token from local Visual Studio

There are many scenarios where you need to use Managed Identity Services for authentication. You setup all the things correctly but in local setup you may encounter this below error. Error - "Unable to get MSI token from local Visual Studio" Solution - To fix this use below steps. Go to Visual Studio Tools Go to Options Go to Azure Service Authentication. Now Make sure, your account is there or not. if its there try to add same account again so it will override your credentials if these has expired or changed. It will solve your error. Thanks