In a C# desktop 2010 application, I am getting the error message, "does not exist in current context".
The error message is referring to the following line of code:
proxy.addErrorReport(errRpts, attList);
Can you tell me what to look at to determine what is causing the error?
Loading
VulpesPosted Jun 25, 2013, 5:01 AM
If they're declared in any of these places, then they're in scope and so can be used:
1. Within the same method.
2. They're parameters of the current method.
3. They're fields (i.e. class level variables) of the class which contains the current method.
Otherwise, they're not in scope and (depending on the circumstances) you'll need to change where they're declared to bring them within the scope of the method call which is giving the error.
Jignesh TrivediPosted Jun 25, 2013, 2:29 AM
hi,
This type of error due to wrong variable / control scope or due to protection level.
i think you can check proxy varible it is accessble in current object?
hope this will help you.
Sunny SharmaPosted Jun 25, 2013, 12:42 AM
The error pertains to the Scoping of a variable or object member. I suggest you to put breakpoints in your code and check where actually the problem is being originated.
Further, you better show us your code to help yourself.
Hope it helps :)
Cheers!