This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi guys,
I'm playing around with LightSpeed 4 beta using WCF Ria with some guidance from Jeremy (much apreciated). I've encountered some problems when I put my service in a WCF Ria Service Library - basically I'm facing the 404 not found deployment horror.
Using Jeremy's advice I've been following this thread , I feel that I've made some progress but unfortunately I'm not there yet + WCF Ria deployment can be frustrating. When I make a call to my service, Fiddler indicates that a call is being made to http://[MY_APP_URL]/ClientBin/[FULLY_QUALIFIED_SERVICE_NAME_WITH_DOTS_REPLACED_BY_DASHES].svc/binary/[OPERATION_NAME]that call results with a 404. I've attempted to use WCF tracing, but I never got any indication of an error in WCF so my guess is the problem lies with the deployment itself. (Please note that I'm using VS 2010's "Cassini"). "Manual" navigation to the forementioned url, using the web browser, results with a 404 as well. The virtual svc is never created.
This is the contents of my web.config:
<?xml version="1.0"?> <configuration> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </modules> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> <system.web> <httpModules> <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </httpModules> </system.web>
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> </system.serviceModel> </configuration>
I believe it would be extremely beneficial, if you could provide a "minimum TODO" checklist in order to deploy a service library successfully, at this moment I've done the following : - Create a WCF Ria library project (MyRiaLibrary) - Have the Silverlight application reference the MyRiaLibrary project - Have the main .Web project reference the MyRiaLibrary.Web project - Add the above entries to the web.config - Examine the MyRiaLibrary project, copy references starting with System.Web to the main .Web assembly, add reference to System.ComponentModel.DataAnnotations to main .Web assembly. Set CopyLocal=True on the new references. They should end up in main .Web's \bin folder (found here) - Add references to Mindscape.LightSpeed, Mindscape.LightSpeed.Linq and Mindscape.ServiceModel.DomainServices to the main .Web assembly, Set CopyLocal=True
Still getting 404. Am I mising anything ? |
|
|
I'm still investigating this issue, I've decided to determine, whether my solution would be capable of hosting an extremely basic service from a second service library.
- Created the library project RiaLib - Added reference RiaLib to the SL client - Created a very basic service :
namespace RiaLib.Web { using System.ServiceModel.DomainServices.Hosting; using System.ServiceModel.DomainServices.Server;
[EnableClientAccess] public class BasicDomainService : DomainService { public string GetString() { return "Hi"; } } } - Added reference RiaLib.Web to the .Web project - Started the project - Navigated to : http://localhost:52878/ClientBin/RiaLib-Web-BasicDomainService.svc - Service is present. Attempted to navigate to the other service (LightSpeedDomainService) - 404. |
|
|
Hi Maciek, Does the other service exist in the primary web application or the library project? If its the latter check if it works by moving it to the primary web application. Also make sure the primary web application has the LightSpeed references as well as the class library. If you can send us through an updated example we can look to have a poke at this also.
Jeremy |
|
|
Hi Jeremy,
I've sent the updated project containing 3 RIA services. Details + results in the mail. Good luck.
Regards, Maciek |
|