Category Archives: General

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

Check if service bus topic/subscription/queue exists with SAS key not having Manage permission

Hi, Consider a scenario where you’ve developed an application health monitoring┬átype system which validates your application at application startup/periodically. Now as part of that if your application uses Azure service bus queues, topics, subscriptions, then it would be good to … Continue reading

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

Cannot access a disposed object. ‘System.Net.Http.StringContent’ While having retry logic.

Hi, I faced this scenario today when I was trying to make an HttpPost call using a retry logic wherein I was getting an ObjectDisposedException while trying to retry for the first time. Exception Message: Cannot access a disposed object. … Continue reading

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

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

Get password for IIS Application Pool account

Use the appcmd.exe in cmd prompt to retrieve password of the app pool. Continue reading

Posted in .NET, General, IIS | Tagged , , , , , | 4 Comments