New Posts New Posts RSS Feed: Error IIS hosting BOS
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Error IIS hosting BOS

 Post Reply Post Reply
Author
BillBiddy View Drop Down
Newbie
Newbie


Joined: 25-Jan-2010
Location: TX
Posts: 1
Post Options Post Options   Quote BillBiddy Quote  Post ReplyReply Direct Link To This Post Topic: Error IIS hosting BOS
    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?
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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:
 
   <%@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 -
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down