My application is in VB.NET (upgraded from vb6.0 to VS 2003) and interacts with the data access layer to access database.
I have put breakpoints in the application for debugging. One of the breakpoints is on 'Public Sub Main()' of the application which is the entry point for the application. When the application reaches this breakpoint, it displays an error message found in a method 'GetValue' in data access layer though this method is not yet called nor the class in which this method is found is instantiated.
After adding a few display messages in the data access layer, I can see that the control is not coming directly to Sub main(). Instead it is instatiating the class containing the method 'GetValue' in the data access layer and displaying the error message in that method and then the control comes to Sub main().
For every breakpoint, it displays the same error message. How do i solve it What am I doing wrong

Error in Sub Main()
Raj L N
Vinit Jain
Richard Pavlicek
Krutika,
Go to Tools/Options/Debugging/ and turn off "Allow property eveluation in variables windows".
It is likely that a variable or expression in the watch, locals, or autos window is doing a property evaluation that instantiates your Data access class calls the GetValue method.
Steve Steiner -MSFT