ArgumentNullException in Build and create the skillset in azure search

Mithila Lishan 136 Reputation points
2021-09-16T08:43:46.307+00:00

This is the link which I am following ([https://learn.microsoft.com/en-us/azure/search/cognitive-search-tutorial-blob-dotnet#build-and-create-the-skillset][1])

I am implementing console application for azure search. when my code is run it is stopped at the below mentioned object creation

SearchIndexerSkillset skillset = new SearchIndexerSkillset("demoskillset", skills)
{
Description = "Demo skillset",
CognitiveServicesAccount = new CognitiveServicesAccountKey(cognitiveServicesKey)
};

its says ArgumentNullException

I checked constructor of SearchIndexerSkillset class but it has only definition, no method body, is it the problem for this error ?
or is there any issue please help me !

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
720 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,399 questions
{count} votes