Print Page | Close Window

EntityService.svc not found

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3317
Printed Date: 20-Apr-2024 at 11:19am


Topic: EntityService.svc not found
Posted By: orcities
Subject: EntityService.svc not found
Date Posted: 05-Mar-2012 at 8:55am

I am trying to move my BOS server with Silverlight components to our existing web site infrastructure, currently seperate.

I am having difficulty with getting the EntityService.svc to respond. I have added the System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider()); to the Global.asax file. I have restarted but it still is not find it.
 
 
Help or direction would be appreciated.



Replies:
Posted By: DenisK
Date Posted: 06-Mar-2012 at 11:58am
Hi orcities,

Could you upload the DebugLog.xml? I'm hoping to see some clues there.


Posted By: orcities
Date Posted: 07-Mar-2012 at 9:58am
The log file is never created.
 
 


Posted By: DenisK
Date Posted: 07-Mar-2012 at 4:15pm
Is your web.config set to create the debug log?

When you say EntityService not found, do you mean that you navigate directly using your web browser to the EntityService.svc page (http://yourhost/EntityService.svc), and it's returning a 404 error?

Also see if our troubleshooting pages can help you further.

http://drc.ideablade.com/xwiki/bin/view/Documentation/deploy-troubleshooting-ntier - http://drc.ideablade.com/xwiki/bin/view/Documentation/deploy-troubleshooting-ntier

http://drc.ideablade.com/xwiki/bin/view/Documentation/troubleshooting-iis - http://drc.ideablade.com/xwiki/bin/view/Documentation/troubleshooting-iis




Posted By: orcities
Date Posted: 08-Mar-2012 at 7:07am
The resource could not be found.
 
http 404


Posted By: orcities
Date Posted: 08-Mar-2012 at 7:10am
My understanding is that on startup the IdeaBlade.EntityMode.Web.ServiceVirtualPathProvider get registered and creates the EntityService.svc.
 
It seems like it is never calling this and creating the service. I know there is no physical file.


Posted By: DenisK
Date Posted: 08-Mar-2012 at 2:42pm
That is correct.

I did some tests and it appears that as far as I know, there are only 2 ways you can get "Resource not found" exception.

1) If you don't have global.asax
or
2) If you dont' have the RegisterVirtualPathProvider statement.

You claim to have both. So my next guess is you're not deploying to where you think you're deploying, i.e. somehow your deployment site and the http://yourhost/EntityService.svc address doesn't match.


Posted By: orcities
Date Posted: 08-Mar-2012 at 2:45pm

I guarantee I am correct in both.

 

My only other assumption is a conflict with the system. I am using DotNetNuke as the base system/web site. My global.asax is as follows:

 

<%@ Application Inherits="DotNetNuke.Common.DotNetNukeHttpApplication" Language="C#" %>

 

<script language="C#" runat="server">

 

    /// <summary>

    /// Perform application start activities. 

    /// </summary>

    protected void Application_Start(Object sender, EventArgs e) {

 

      // To enable remote viewing of trace messages via the TraceViewer:

      // TODO:  Comment/uncomment the following line as appropriate for your installation

      //IdeaBlade.Core.TracePublisher.LocalInstance.MakeRemotable();    

     

      // Register a virtual path provider for *.svc files. 

      // You do not need to supply .svc files for the EntityService and EntityServer services

      // when the provider is registered.     

      System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider());    

    }                                         

</script>



Posted By: DenisK
Date Posted: 08-Mar-2012 at 3:20pm
Hmm, that may explain why it doesn't work. I had a quick discussion with our IIS expert. DotNetNuke is a CMS application and you're trying to inherit a DevForce application from this application. Obviously it will have conflicts. We're neither familiar with DotNetNuke nor do we know if DevForce works under it.

In any case, here's a post that might help but beyond this, we don't have any other suggestion. 

http://www.byteblocks.com/post/2010/03/31/Deploying-a-web-application-under-DNN.aspx - http://www.byteblocks.com/post/2010/03/31/Deploying-a-web-application-under-DNN.aspx



Print Page | Close Window