Browse the archive

Tag: C#

Solved: Cognitive Services – Operation returned an invalid status code ‘Unauthorized’

Problem The Azure Cognitive Services SDK is a set of pre-built services that enable developers to easily and quickly integrate AI capabilities into their applications. It provides a wide range of cognitive services including computer vision, language understanding, speech, and search APIs. Recently whilst using the Azure Cognitive Services SDK recently, I encountered the below […]
Read article

How To: Generate Swagger REST API Client

Overview As the web continues to grow and evolve, API’s are where all the magic happens that powers this innovation. REST API’s have become increasingly more favoured by developers for their ease of use over other alternatives (XML I’m looking at you). Unfortunately, REST API’s can sometimes become a bit unwieldy in terms of documenting […]
Read article

Solved: Azure Functions Can’t Bind Parameter ‘data’ to Type Error

Problem Recently I came across an unusual error whilst working with C# Azure Functions. When the Function was executed, the console window showed the following error. The ‘XXXXXX’ function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method ‘XXXXXX ‘. Microsoft.Azure.WebJobs.Host: Can’t bind parameter ‘data’ to type ‘XXXXXX’. I checked the Activity function parameter bindings however couldn’t […]
Read article

Visual Studio: Generate Class From JSON String

Overview If you work JSON documents, I’m sure you’ve probably had to create a class file from a JSON string. Doing this manually can be a real pain in the proverbial, especially if you are working with a large JSON document. It can also be very error-prone. Therefore it’s best to automate this conversion. In […]
Read article