I have deployed a new Silverlight application with Ideablade responsible for the data model, The Ideablade Silverlight Application template was used to create the application, however Cocktail later added via NuGet to do MVVM.
The target framework for the Silverlight class where the views are is Silverlight 5. The target framework for the Web project is .Net 4.5. The server where the application is deployed to uses IIS 7, with the latest .net 4 installed. The application pool for the Silverlight application in IIS uses .net 4.
So, when I attempt to run the Silverlight application an error appears regarding the EntitiyServer (no entity service listening). If I navigate to the entityservice (.e.g.
http://server/application/entityservice.svc) the following error appears:
What can I do to fix this.
[TypeLoadException: Could not load type 'System.Reflection.IntrospectionExtensions' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] IdeaBlade.Core.Reflection.ReflectionExtensions.GetAssembly(Type type) +0 IdeaBlade.Core.PlatformResolver.Load() +22 IdeaBlade.Core.PlatformManager.get_Current() +109 IdeaBlade.Core.AppEnv.get_Current() +97 IdeaBlade.Core.Composition.CompositionHost.Init() +25 IdeaBlade.Core.Composition.CompositionHost..cctor() +40
[TypeInitializationException: The type initializer for 'IdeaBlade.Core.Composition.CompositionHost' threw an exception.] IdeaBlade.Core.Composition.CompositionHost.get_Instance() +0 IdeaBlade.EntityModel.Server.EntityServiceHost.ApplyConfiguration() +18 System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +192 System.ServiceModel.ServiceHost.InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses) +49 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +151 IdeaBlade.EntityModel.Server.EntityServiceHostFactory.CreateHostCore(Type serviceType, Uri[] baseAddresses) +30 IdeaBlade.EntityModel.Server.EntityServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +40 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +422 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1461 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +651
[ServiceActivationException: The service '/Cromarty.Projects/eNTITYsERVICE.SVC' cannot be activated due to an exception during compilation. The exception message is: The type initializer for 'IdeaBlade.Core.Composition.CompositionHost' threw an exception..] System.Runtime.AsyncResult.End(IAsyncResult result) +688590 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190 System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +310694 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +94
Thanks
Mark