Hi, I have a Silverlight 3 app running here: http://www.josephmanderson.com/CareerPathChartsTestPage.aspx I receive a "Not Found" error, after setting a break point. When you navigate to my service, it exists on my website. When this project runs on local host, everything works perfectly. The service is not defective and I believe the issue might be with my end points or my permissions. The web service is calling a database using Linq to SQL. The uni-directional property has been set appropriately. I am using the Factory attribute of the service: Factory="CareerWCF.CoreServiceHostFactory" Here is the factory code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ServiceModel.Activation; using System.ServiceModel; namespace CareerWCF { public class CoreServiceHostFactory : ServiceHostFactory { protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { // Specify the exact URL of your web service // Real location of service omitted Uri webServiceAddress = new Uri("http://www.mysite.com/xxx"); ServiceHost webServiceHost = new ServiceHost(serviceType, webServiceAddress); return webServiceHost; } } } Here is the relevant section of my Web.config: <system.serviceModel> <bindings> <customBinding> <binding name="customBinding0"> <binaryMessageEncoding /> <httpTransport /> </binding> </customBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service behaviorConfiguration="CareerWCF.Service1Behavior" name="CareerWCF.Service1"> <endpoint address="" binding="wsHttpBinding" contract="CareerWCF.IService1"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service behaviorConfiguration="CareerWCF.careerServiceBehavior" name="CareerWCF.careerService"> <endpoint address="" binding="customBinding" bindingConfiguration="customBinding0" contract="CareerWCF.careerService" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CareerWCF.Service1Behavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> <behavior name="CareerWCF.careerServiceBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> Have I set this up incorrectly?
If your site is on an IIS7 server, I recommend enabling the Failed Request Tracing module on your site. Go to the IIS Manager page in your DiscountASP Control panel to enable the module. The trace files should show the exact error that occured.
Deployment Issue Fixed Hi, Thanks for the tip. I copied files to the wrong places, which was causing the error. Here is the fix: http://forums.silverlight.net/forums/t/149904.aspx