Type update from Entity Model not reflected in Object Browser in dependent project - by J Henry-Ontuitive

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 773946 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/10/2012 10:24:05 AM
Access Restriction Public


Visual Studio 2012 v 11.0.50727.1 (.Net Framework v 4.5.50709)

When updating an entity model in a data accessd layer, projects with the data access layer referenced as a dependency do not reflect the updated type.

error message:
The server encountered an error processing the request. The exception message is 'Schema specified is not valid. Errors: The relationship 'OntuitiveSSODBModel.FK_ClientInstallsIdPToSpBindingType_ToBindingTypes' was not loaded because the type 'OntuitiveSSODBModel.ClientInstall' is not available. The following information may be useful in resolving the previous error: The required property 'IsActive' does not exist on the type 'Ontuitive.SSO.DataAccess.DataModels.ClientInstall'. The relationship 'OntuitiveSSODBModel.FK_ClientInstallsSpToIdPBindingType_ToBindingTypes' was not loaded because the type 'OntuitiveSSODBModel.ClientInstall' is not available. The following information may be useful in resolving the previous error: The required property 'IsActive' does not exist on the type 'Ontuitive.SSO.DataAccess.DataModels.ClientInstall'. The relationship 'OntuitiveSSODBModel.FK_ClientInstalls_ToClients' was not loaded because the type 'OntuitiveSSODBModel.ClientInstall' is not available. The following information may be useful in resolving the previous error: The required property 'IsActive' does not exist on the type 'Ontuitive.SSO.DataAccess.DataModels.ClientInstall'. '. See server logs for more details. The exception stack trace is:

at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) at System.Data.Entity.Internal.InternalContext.TryUpdateEntitySetMappingsForType(Type entityType) at System.Data.Entity.Internal.InternalContext.TryGetEntitySetAndBaseTypeForType(Type entityType) at System.Data.Entity.Internal.Linq.InternalSet`1.TryInitialize() at System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes() at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext() at lambda_method(Closure , Object ) at System.Data.Services.Providers.DbContextHelper.GetObjectContext(Object o) at System.Data.Services.Caching.MetadataCache`1.TryLookup(Type serviceType, Object dataContextInstance) at System.Data.Services.Providers.BaseServiceProvider.LoadMetadata() at System.Data.Services.DataService`1.CreateMetadataAndQueryProviders(IDataServiceMetadataProvider& metadataProviderInstance, IDataServiceQueryProvider& queryProviderInstance, BaseServiceProvider& builtInProvider, Object& dataSourceInstance) at System.Data.Services.DataService`1.CreateProvider() at System.Data.Services.DataService`1.EnsureProviderAndConfigForRequest() 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.ProcessMessage41(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Sign in to post a comment.
Posted by Lawrence [MSFT] on 8/8/2013 at 2:24 PM
I'm afraid we're unable to reproduce your issue. The updated properties and/or entities show up fine for us. I talked to the WCF Data Services team and they couldn't see it either. They did have a couple of suggestions though:

1. Did they restart the service – not sure how they are hosting it, but once they recompile, they will need to restart the service.
2. Other than that, the only thing I can think of is to ensure that the new properties must be public. EF supports internal/private properties, but WCF Data services needs properties to be public.

Hope that helps.
Posted by Macy [MSFT] on 12/10/2012 at 11:09 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 12/10/2012 at 10:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)