Object reference not set to an instance of an object - WCF Service and Delegates (WCF Hosted before Delegate is instantiated)
问题 I am using delegates to allow my service to grab a string that is stored in my form. When I run the code my service log states the following: System.NullReferenceException: Object reference not set to an instance of an object. Pointing towards diData.DIDataCompressed = GetDIData(); I tried setting a breakpoint at DataServer = new ModelDataService(); in my form's constructor. And noticed that my WCF service was started (I got the popup from WcfSvcHost in tray and also in the WCF Service Host