A JSON parsing exception occurred....the document is empty

Kelvin 0 Reputation points

Hello to all! I am literally at wit's end! I am trying to translate documents using Azure Translator. I have followed the instructions provided by Microsoft found here (https://learn.microsoft.com/en-us/azure/ai-services/translator/document-translation/quickstarts/document-translation-rest-api?pivots=programming-language-csharp) and I am getting the below error in the debug console:

A JSON parsing exception occurred in [C:\Users\kelvi\source\repos\document-translation-qs\document-translation-qs\bin\Debug\net6.0\document-translation-qs.deps.json], offset 0 (line 1, column 1): The document is empty.

Error initializing the dependency resolver: An error occurred while parsing: C:\Users\kelvi\source\repos\document-translation-qs\document-translation-qs\bin\Debug\net6.0\document-translation-qs.deps.json

C:\Users\kelvi\source\repos\document-translation-qs\document-translation-qs\bin\Debug\net6.0\document-translation-qs.exe (process 1244) exited with code -2147450741.

To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.

Press any key to close this window . . .

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.

The program '[10616] document-translation-qs.exe' has exited with code 2147516555 (0x8000808b).

I cannot understand what I might be doing wrong! In a perfect world, I should experience success when following the directions, but this is an imperfect world and so I need help, please! :) I am using VS 2022 and a C# / .NET environment. I installed several workloads, so again, I cannot understand why this isn't working for me! Thank you for your time in advance! Be Blessed

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
277 questions
{count} votes