Great! You would loose years off your life if you had to go back to xml configuration
On Sep 16, 2010, at 11:45 AM, João Bragança wrote: > That worked! Thanks, you just saved me a whole lot of configuration > over convention. > > On Sep 16, 2:41 am, Craig Neuwirt <[email protected]> wrote: >> On Sep 15, 2010, at 8:27 PM, João Bragança wrote: >> >>> Thanks to years of relying on the Castle stack my brain has atrophied >>> to the point where I forgot how to configure WCF by hand. >> >> LoL. I added back original default endpoint selection if not NET40. Get >> latest and give it a try. >> >> >> >> >> >> >> >> >> >>> Doing what Kryztof recommends in >>> http://stackoverflow.com/questions/2698342/castle-wcffacility-service... >>> results in that same exception: "The ServiceEndpoint for a ServiceHost >>> cannot be created from an endpoint name." >> >>> On Sep 15, 4:59 pm, Craig Neuwirt <[email protected]> wrote: >>>> Ok, no problem. I am working in 4.0 mostly so I just don't have good >>>> visibility to 3.5. >>>> What I think happened is that before 4.0, I added support for default >>>> endpoints. Since that >>>> was built into 4.0, the code was changed to utilize it. However, that >>>> must of broke 3.5 cause >>>> it now has #if DOT40 around it. I think I'll need to add back the >>>> original code for 3.5. >> >>>> In the short term, you can just add a DefaultServiceModel with and >>>> endpoint for now. >> >>>> On Sep 15, 2010, at 6:50 PM, João Bragança wrote: >> >>>>> I had that same suspicion actually since it is the only thing that I >>>>> can tell is different. While I do want to update this project to 4 >>>>> right now I can't justify spending the time on it (juggling way too >>>>> many projects right now). >> >>>>> On Sep 15, 4:32 pm, Craig Neuwirt <[email protected]> wrote: >>>>>> I have a suspicion. Is there any way you could try in using .net 4.0? >> >>>>>> -craig >> >>>>>> On Sep 15, 2010, at 6:16 PM, João Bragança wrote: >> >>>>>>> I am trying to use WcfFacility build #74 (.net 3.5, Castle 2.5) with >>>>>>> the 'look no config' option. This used to work just fine but now it >>>>>>> doesn't. However I *can* run the Demo and get the WSDL from >>>>>>> UsingWindsorWithoutConfig.svc on my machine. Any help would be >>>>>>> appreciated! >> >>>>>>> Stack trace: >>>>>>> [InvalidOperationException: Service >>>>>>> 'AWC.Services.AuthenticationService' has zero application (non- >>>>>>> infrastructure) endpoints. This might be because no configuration file >>>>>>> was found for your application, or because no service element matching >>>>>>> the service name could be found in the configuration file, or because >>>>>>> no endpoints were defined in the service element.] >> >>>>>>> System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpo >>>>>>> ints(ServiceDescription >>>>>>> description) +279 >> >>>>>>> System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(Ser >>>>>>> viceDescription >>>>>>> description, ServiceHostBase serviceHost) +64 >>>>>>> System.ServiceModel.ServiceHostBase.InitializeRuntime() +37 >>>>>>> System.ServiceModel.ServiceHostBase.OnBeginOpen() +27 >>>>>>> System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49 >>>>>>> System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan >>>>>>> timeout) +261 >>>>>>> System.ServiceModel.HostingManager.ActivateService(String >>>>>>> normalizedVirtualPath) +121 >>>>>>> System.ServiceModel.HostingManager.EnsureServiceAvailable(String >>>>>>> normalizedVirtualPath) +479 >> >>>>>>> [ServiceActivationException: The service '/services/ >>>>>>> authentication.svc' cannot be activated due to an exception during >>>>>>> compilation. The exception message is: Service >>>>>>> 'AWC.Services.AuthenticationService' has zero application (non- >>>>>>> infrastructure) endpoints. This might be because no configuration file >>>>>>> was found for your application, or because no service element matching >>>>>>> the service name could be found in the configuration file, or because >>>>>>> no endpoints were defined in the service element..] >>>>>>> System.ServiceModel.AsyncResult.End(IAsyncResult result) +11599786 >> >>>>>>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResul >>>>>>> t >>>>>>> result) +194 >> >>>>>>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchron >>>>>>> ous(HttpApplication >>>>>>> context, Boolean flowContext) +176 >>>>>>> System.ServiceModel.Activation.HttpModule.ProcessRequest(Object >>>>>>> sender, EventArgs e) +278 >> >>>>>>> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep >>>>>>> .Execute() >>>>>>> +68 >>>>>>> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, >>>>>>> Boolean& completedSynchronously) +75 >> >>>>>>> /services/authentication.svc >> >>>>>>> <%@ ServiceHost Service="authentication.svc" >>>>>>> Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory, >>>>>>> Castle.Facilities.WcfIntegration" %> >> >>>>>>> public class Global : HttpApplication >>>>>>> { >>>>>>> private IWindsorContainer container; >> >>>>>>> protected void Application_Start(object sender, EventArgs e) >>>>>>> { >>>>>>> container = new WindsorContainer() >>>>>>> .AddFacility<WcfFacility>(); >> >>>>>>> container.Install(FromAssembly.This()); >>>>>>> } >>>>>>> } >> >>>>>>> public class WcfServicesInstaller : IWindsorInstaller >>>>>>> { >>>>>>> private static string GetServiceName(Type implementation) >>>>>>> { >>>>>>> return implementation.Name.Substring(0, >>>>>>> implementation.Name.Length - >>>>>>> "Service".Length) >>>>>>> .ToLowerInvariant() + ".svc"; >>>>>>> } >>>>>>> #region IWindsorInstaller Members >> >>>>>>> public void Install(IWindsorContainer container, IConfigurationStore >>>>>>> store) >>>>>>> { >> >>>>>>> container.Register(AllTypes.FromAssemblyContaining<IAuthenticationService>( >>>>>>> ) >>>>>>> .Where(type => >>>>>>> type.Name.EndsWith("Service")) >>>>>>> .WithService.FirstInterface() >>>>>>> .Configure(c => >>>>>>> c.Named(GetServiceName(c.Implementation))), >>>>>>> Component.For<IServiceBehavior>() >>>>>>> >>>>>>> .ImplementedBy<ServiceDebugBehavior>() >>>>>>> .DependsOn(new >>>>>>> { >>>>>>> >>>>>>> IncludeExceptionDetailInFaults = >>>>>>> true, >>>>>>> >>>>>>> HttpHelpPageEnabled = true, >>>>>>> }), >>>>>>> Component.For<IServiceBehavior>() >>>>>>> >>>>>>> .ImplementedBy<ServiceMetadataBehavior>() >>>>>>> .DependsOn(new >>>>>>> { >>>>>>> >>>>>>> HttpGetEnabled = true >>>>>>> })); >>>>>>> } >>>>>>> #endregion >> >>>>>>> } >> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "Castle Project Users" group. >>>>>>> To post to this group, send email to >>>>>>> [email protected]. >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected]. >>>>>>> For more options, visit this group >>>>>>> athttp://groups.google.com/group/castle-project-users?hl=en. >> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "Castle Project Users" group. >>>>> To post to this group, send email to >>>>> [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]. >>>>> For more options, visit this group >>>>> athttp://groups.google.com/group/castle-project-users?hl=en. >> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Castle Project Users" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group >>> athttp://groups.google.com/group/castle-project-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
