RadhaKrishnaKiJaya
asked on
The type or namespace name 'xxx could not be found
Hello Experts,
I am trying to create a Windows Service project, which uploads data from an API. In one class, I am trying to access an external class name ManageData, with in the same project. But, getting the below error message. Please see the attached picture. Please let me know how to fix it. Thank you in advance.
Error CS0246: The type or namespace name 'ManageData' could not be found (are you missing a using directive or an assembly reference?)
Thank you!
Service.png
I am trying to create a Windows Service project, which uploads data from an API. In one class, I am trying to access an external class name ManageData, with in the same project. But, getting the below error message. Please see the attached picture. Please let me know how to fix it. Thank you in advance.
Error CS0246: The type or namespace name 'ManageData' could not be found (are you missing a using directive or an assembly reference?)
Thank you!
Service.png
ASKER
Hello Fernando,
Thank you for your help. I tried all other declaration types. None of them works. Here I am trying to access ManageData, which is external. I am not sure how the declaration type matters here. Still I tried all in your list.
Thank you!
Thank you for your help. I tried all other declaration types. None of them works. Here I am trying to access ManageData, which is external. I am not sure how the declaration type matters here. Still I tried all in your list.
Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Saige. That is was missing. It worked now. Thank you again.
The class in the posted image is declared as private. It must be changed so that it can be Accessed from outside that class. See below