df.Credentials undefined in C# using VS 2015

I’m following the C# example from flightaware.com/commercial/flig … ation2.rvt

I have executed

wsdl.exe flightxml.flightaware.com/soap/FlightXML2/wsdl

to generate FlightXML2.cs but I’m still getting compilation errors in the following using Visual Studio 2015

FlightXML2 df = new FlightXML2();
df.Credentials = new NetworkCredential(“sampleUser”, “abc123abc123abc123abc123abc123”);
df.PreAuthenticate = true;

Both df.Credentials and df.PreAuthenticate are undefined.

Be sure that the generated FlightXML2.cs file is in the same directory as your example code.

Are you compiling through the command line, as specified in the example?

csc.exe test.cs FlightXML2.cs

Thanks. It’s working OK now. It was a case of missing dll which prevented FlightXML2.cs from compiling properly.