Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client fail on entity type without property #48

Closed
xuubin opened this issue Jan 6, 2015 · 2 comments
Closed

Client fail on entity type without property #48

xuubin opened this issue Jan 6, 2015 · 2 comments
Milestone

Comments

@xuubin
Copy link

xuubin commented Jan 6, 2015

Exception message: The complex type has no settable properties.

@xuubin xuubin self-assigned this Jan 6, 2015
@xuubin xuubin added this to the 6.10.0 milestone Jan 6, 2015
@congysu
Copy link
Contributor

congysu commented Jul 24, 2015

a864902

@congysu congysu closed this as completed Jul 24, 2015
@nickkin-msft
Copy link

If it was fixed, this error is now being seen again. In fact it appears that it is being explicitly checked for:

at Microsoft.OData.Client.ClientEdmModel.ValidateComplexTypeHasProperties(Type type, EdmTypeCacheValue cachedEdmType)
at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmType(Type type)
at Microsoft.OData.Client.ClientEdmModel.CreateEdmProperty(IEdmStructuredType declaringType, PropertyInfo propertyInfo)
at Microsoft.OData.Client.ClientEdmModel.<>c__DisplayClass19.b__13(EdmComplexTypeWithDelayLoadedProperties complexType)
at Microsoft.OData.Client.Providers.EdmComplexTypeWithDelayLoadedProperties.EnsurePropertyLoaded()
at Microsoft.OData.Client.Providers.EdmComplexTypeWithDelayLoadedProperties.get_DeclaredProperties()
at Microsoft.OData.Client.Metadata.ClientTypeAnnotation.d__8.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.OData.Client.Metadata.ClientTypeAnnotation.EdmProperties() at Microsoft.OData.Client.Metadata.ClientTypeAnnotation.BuildPropertyCache() at Microsoft.OData.Client.Metadata.ClientTypeAnnotation.GetProperty(String propertyName, Boolean ignoreMissingProperties) at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValue(ClientTypeAnnotation type, ODataProperty property, Object instance) at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValues(ClientTypeAnnotation type, IEnumerable1 properties, Object instance)
at Microsoft.OData.Client.Materialization.CollectionValueMaterializationPolicy.ApplyCollectionDataValues(IEnumerable items, String wireTypeName, Object collectionInstance, Type collectionItemType, Action2 addValueToBackingICollectionInstance, Boolean isElementNullable) at Microsoft.OData.Client.Materialization.CollectionValueMaterializationPolicy.ApplyCollectionDataValues(ODataProperty collectionProperty, Object collectionInstance, Type collectionItemType, Action2 addValueToBackingICollectionInstance, Boolean isElementNullable)
at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValue(ClientTypeAnnotation type, ODataProperty property, Object instance)
at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValues(ClientTypeAnnotation type, IEnumerable1 properties, Object instance) at Microsoft.OData.Client.Materialization.CollectionValueMaterializationPolicy.ApplyCollectionDataValues(IEnumerable items, String wireTypeName, Object collectionInstance, Type collectionItemType, Action2 addValueToBackingICollectionInstance, Boolean isElementNullable)
at Microsoft.OData.Client.Materialization.CollectionValueMaterializationPolicy.ApplyCollectionDataValues(ODataProperty collectionProperty, Object collectionInstance, Type collectionItemType, Action2 addValueToBackingICollectionInstance, Boolean isElementNullable) at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValue(ClientTypeAnnotation type, ODataProperty property, Object instance) at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValues(ClientTypeAnnotation type, IEnumerable1 properties, Object instance)
at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValue(ClientTypeAnnotation type, ODataProperty property, Object instance)
at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValues(ClientTypeAnnotation type, IEnumerable1 properties, Object instance) at Microsoft.OData.Client.Materialization.StructuralValueMaterializationPolicy.ApplyDataValue(ClientTypeAnnotation type, ODataProperty property, Object instance) at Microsoft.OData.Client.Materialization.EntryValueMaterializationPolicy.MaterializeResolvedEntry(MaterializerEntry entry, Boolean includeLinks) at Microsoft.OData.Client.Materialization.EntryValueMaterializationPolicy.Materialize(MaterializerEntry entry, Type expectedEntryType, Boolean includeLinks) at Microsoft.OData.Client.Materialization.ODataEntityMaterializer.DirectMaterializePlan(ODataEntityMaterializer materializer, MaterializerEntry entry, Type expectedEntryType) at Microsoft.OData.Client.Materialization.ODataEntityMaterializerInvoker.DirectMaterializePlan(Object materializer, Object entry, Type expectedEntryType) at Microsoft.OData.Client.ProjectionPlan.Run(ODataEntityMaterializer materializer, ODataEntry entry, Type expectedType) at Microsoft.OData.Client.Materialization.ODataEntityMaterializer.ReadImplementation() at Microsoft.OData.Client.Materialization.ODataMaterializer.Read() at Microsoft.OData.Client.MaterializeAtom.MoveNextInternal() at Microsoft.OData.Client.MaterializeAtom.MoveNext() at System.Linq.Enumerable.<CastIterator>d__11.MoveNext()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants