Print Page | Close Window

Error IIS hosting BOS

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1628
Printed Date: 21-Sep-2025 at 9:37am


Topic: Error IIS hosting BOS
Posted By: BillBiddy
Subject: Error IIS hosting BOS
Date Posted: 25-Jan-2010 at 4:19pm
I get the following exception logged to event viewer when spinning up WCF SVCs for EntityServer and EntityService
 
Event Type: Error
Event Source: System.ServiceModel 3.0.0.0
Event Category: WebHost
Event ID: 3
Date:  1/25/2010
Time:  5:55:39 PM
User:  CSS-W015\ASPNET
Computer: CSS-W015
Description:
WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/65692953
 Exception: System.ServiceModel.ServiceActivationException: The service '/MarkIV.Net.Entity.Server/EntityService.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'IdeaBlade.EntityModel.Server.RemoteEntityService', provided as the Service attribute value in the ServiceHost directive could not be found.. ---> System.InvalidOperationException: The type 'IdeaBlade.EntityModel.Server.RemoteEntityService', provided as the Service attribute value in the ServiceHost directive could not be found.
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
    
I did a quick object search for RemoteEntityService' in the Entity.Server assembly and no such class was found. What am I missing?



Replies:
Posted By: davidklitzke
Date Posted: 26-Jan-2010 at 12:30pm
Start with a working IIS Deployment.  Use the 110_Deployment example ("300COR_DeploymentWithIIS") example in the Learning Resources folder.  Unfortunately, this example does not work because the database login will fail as it uses Windows Security.  To fix the problem, change the database connection string by replacing "Integrated Security=True" with a correct SQL Server password string (e,g., "User=sa;Password=foo;"
 
Look at the Deployment.pdf document as well.  The documentation is correct as far as it goes, but unfortunately the discussion of WCF is very sparse.


Posted By: kimj
Date Posted: 27-Jan-2010 at 8:25am
RemoteEntityService is an internal class in the IdeaBlade.EntityModel.Server assembly.  The EntityService.svc file contents should look something like this:
 
   < mailto:%@ServiceHost - %@ServiceHost language="C#" Service="IdeaBlade.EntityModel.Server.RemoteEntityService" %>
 
(The language can be either C# or VB.)
 
We haven't seen this problem before, but a few things to check -
  • Make sure all required IdeaBlade assemblies are in bin or the GAC.  (These are IdeaBlade.EntityModel, IdeaBlade.EntityModel.Edm, IdeaBlade.EntityModel.Server, IdeaBlade.Linq, IdeaBlade.Valdiation, and possibly IdeaBlade.EntityModel.Web if using ASP.NET security.)
  • If you've precompiled your web site that might be the problem.  This link may help - http://social.msdn.microsoft.com/forums/en-US/wcf/thread/8c897f8e-2143-450e-a9f4-97d1f8702da7/ - http://social.msdn.microsoft.com/forums/en-US/wcf/thread/8c897f8e-2143-450e-a9f4-97d1f8702da7/
 



Print Page | Close Window