This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have read a related thread but it was last updated in 2009. So my question is, is something like this alloped:
I will be hand coding my entities and not usin the LightSpeed designer, which so far is working. However, aftter exposing the MyClass above within a WCF contract, LightSpeed throws null reference when setting the property Name during a service call. I used WCFTestClient to invoke the service operation, populated the field name, and immediately after invoking the service and I get System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="Mindscape.LightSpeed" StackTrace: at Mindscape.LightSpeed.Entity.TrackChange(String , Object , Object ) at Mindscape.LightSpeed.Entity.SetInternal[TField](TField& , TField , String ) at Mindscape.LightSpeed.Entity.Set[TField](TField& field, TField value, String propertyName) at Services.Contracts.Entities.LocationServiceSubscriber.set_Name(String value) in D:\Documents\Visual Studio 2008\Projects\PushNotifications.Server\Services.Interface\Entities\LocationServiceSubscriber.cs:line 67 at ReadLocationServiceSubscriberFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] ) at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract& dataContract) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc& rpc) InnerException: This happens in the call to Set(ref _name, value, "Name"); Is this not allowed. Thanks again. |
|
|
Never mind on this one. Figured out a way forward. |
|