question

HughesDavidGL-7133 avatar image
0 Votes"
HughesDavidGL-7133 asked AshokPeddakotla-MSFT commented

video analyzer tutorials

I have tried following the Microsoft tutorial at https://docs.microsoft.com/en-us/azure/azure-video-analyzer/video-analyzer-docs/edge/use-line-crossing

I have installed:

  • Visual studio Code version 1.66.2

  • .NET Core 3.1 SDK

  • Azure IoT Tools

  • C#

When I attempt to run the sample program the program fails and I get multiple (many) errors of the following form.

"The type or namespace name 'NAME' could not be found (are you missing an assembly reference?)[c2d-console-app]

Any help understanding what the problem is and how to fix it would be greatly appreciated.





azure-iot-edge
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@HughesDavidGL-7133 Did you get a chance to see my suggestions? Do le us know if you need further help.

0 Votes 0 ·
DavidHughes-3702 avatar image DavidHughes-3702 AshokPeddakotla-MSFT ·

Yes, thanks.

I found that if I keep changing folders in VS Code down to the level of the errors I get an automatic message from VS Code to restore some settings - which fixes the problem.

This was a suggestion from someone in the Q&A chat - I've lost the thread so I can't tell you who - but I am grateful for the help.

0 Votes 0 ·

Glad to hear you have found a resolution to the issue. Thanks for sharing here for the benefit of the community.

0 Votes 0 ·

1 Answer

AshokPeddakotla-MSFT avatar image
0 Votes"
AshokPeddakotla-MSFT answered

@HughesDavidGL-7133 Welcome to Microsoft Q&A forum! Apologies for the delayed response.

Are you still blocked?

"The type or namespace name 'NAME' could not be found (are you missing an assembly reference?)[c2d-console-app]

Common causes of the error:

  • Make sure that you are referring to the namespace given for the project/file.

  • You might not have added the required using directive

  • You might have missed to reference the assembly that contains the type

  • There might be an issue with the assembly you are trying to reference.

Please double check the above and let us know if that helps.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.