I have a VB.net application that runs against the TWS api. In the Tws1_updatePortfolioEx event, I am comparing the contract against a spreadsheet of data. When I am attempting to put a break point here and step through the code, I get the message "Contracts.cs not found". Here is the line of code:
If eventArgs.contract.Symbol = positions.Cells(i, 1).value Then
The program stops at the break point when the event fires, but when I try to press F8 to step to the next line, I get the message "Contracts.cs not found". Actually this message opens up in a new tab.
This application uses a C# library. There is a file called Contracts.cs in the C# library folder, but it is not included in the project.
Do I need to include it? Another problem is that as soon as this event gets fired and this line of code gets executed, the connection with the TWS server gets dropped.