Object reference not set - WebReference WS
Here's some puzzling one...
I've added a web reference to my project and now i cant't get it instantiated, i always get
'Object reference not set to an instance of an object.' exception.
Here's C# code:
1: OTA_AirAvailRQ OTA_AirAvailRQ_Document = new OTA_AirAvailRQ();
2: OTA_AirAvailRQ_Document.POS.Source.PseudoCityCode = "LAS1S210D";
I get the exception on line 2, intellisene displays everthing ok, and it compiles fine, but at runtime it blows.
Any ideas, is it something that i'm forgetting of ?
Thanks a lot.