While going through the Astoria sample in DO 4.3 RC3 I'm getting this error:
The server encountered an error processing the request. The exception message is 'The property 'Type' is not a valid property name for type 'Server.Model.EntityBase'. Please specify a valid property name.'. See server logs for more details. The exception stack trace is:
at System.Data.Services.IgnorePropertiesAttribute.GetProperties(Type type, Boolean inherit, BindingFlags bindingFlags) at System.Data.Services.Providers.ReflectionServiceProvider.BuildTypeProperties(ResourceType parentResourceType, IDictionary`2 knownTypes, IDictionary`2 childTypes, Queue`1 unvisitedTypes, IEnumerable`1 entitySets) at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadata(IDictionary`2 knownTypes, IDictionary`2 childTypes, IDictionary`2 entitySets) at System.Data.Services.DataService`1.CreateProvider() at System.Data.Services.DataService`1.HandleRequest() at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Any idea why this is happening?
Updated at 21.06.2010 20:39:02
Locate file .../AstoriaSample/Server.Model/EntityBase.cs, and change line with IgnoreProperties into this:
[IgnoreProperties("PersistenceState", "Session", "Item", "TypeInfo", "Key", "VersionInfo", "IsRemoved")]
as you can see you must change string "Type" with "TypeInfo", this is because DO4.3 rename property "Type" into "TypeInfo" but forgot to change astoria sample i think :-)
Indeed, thanks a lot
This thread was imported from our support forum. The original discussion may contain more detailed answer.
Original topic by samirski.
asked
Jun 21 '10 at 17:30
Editor
46●156●156●157