Hi,
We are having some random errors while running
our project, in both development and production environment. It only happens
sometimes. Usually we have to recompile the project many times to make this
error go away. Please note that this only happens at run-time, everything always
compiles just fine.
Even when we run our application and everything
is working, after long periods of time (several days) the application
occasionally fails. If we restart the IIS (or website) then everything works
again.
Please take a look at some of those errors;
they usually don't happen at the same time:
Example1:
Entity 'BAnesthesic.RIAServicesLibrary.Web.RegistoFluido' has a property 'FluidoReference' with an unsupported type.. ---> System.InvalidOperationException: Entity 'BAnesthesic.RIAServicesLibrary.Web.RegistoFluido' has a property 'FluidoReference' with an unsupported type.
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.AddEntityType(Type entityType)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.AddEntityType(Type entityType)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.AddQueryMethod(DomainOperationEntry method)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.Initialize()
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
em System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
em System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
Example 2:
The Entity 'TipoPrescr' in DomainService 'EpisodiosRecobroDomainService' does not have a key defined. Entity types exposed by DomainService operations must have at least one public property marked with the KeyAttribute.. ---> System.InvalidOperationException: The Entity 'TipoPrescr' in DomainService 'EpisodiosRecobroDomainService' does not have a key defined. Entity types exposed by DomainService operations must have at least one public property marked with the KeyAttribute.
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.ValidateEntityTypes()
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.Initialize()
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
em System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
em System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
Example 3:
Invalid Include specification for member 'RegistoFluido.Fluido'. Non-projection includes can only be specified on members with the AssociationAttribute applied.. ---> System.InvalidOperationException: Invalid Include specification for member 'RegistoFluido.Fluido'. Non-projection includes can only be specified on members with the AssociationAttribute applied.
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.ValidateEntityTypes()
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.Initialize()
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
em System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
em OpenRiaServices.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
em OpenRiaServices.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
em System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
<o:p></o:p>
em System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
We have recently upgraded from entity framework 5
and WCF Ria Services V1.0 SP2 to entity framework 6.1.0 and Open ria services trying
to fix this problem. But we are still seeing the same errors. Our application (Silverlight line of business
application) is hosted in IIS 7.5.
Thanks for your help
This content has not been rated yet.
25
Reputation
3
Total posts