Any chance of creating a test case for this?

On Tue, Oct 27, 2009 at 1:50 PM, Tiago Soczek <[email protected]> wrote:

> Yes, this works normally, but I need to self-host in my console-app, the
> exception is System.InvalidOperationException, because this line:
>
> IWcfServiceModel serviceModel = SelectBestHostedServiceModel(model);
>
> Returns null and the WCF default service host are called, him can't
> construct my service because he don't have a parameterless constructor.
>
>
> On Tue, Oct 27, 2009 at 4:30 PM, Craig Neuwirt <[email protected]> wrote:
>
>> To use an .svc file do this,
>>
>> <%@ ServiceHost Language="C#" Debug="true" Service="MyService"
>>
>>  Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
>>
>> Castle.Facilities.WcfIntegration"
>> %>
>>
>> where MyService is the name of the component registered in the container.
>>
>>
>> On Tue, Oct 27, 2009 at 1:10 PM, Tiago Soczek <[email protected]>wrote:
>>
>>> Hi guys,
>>>
>>> I wanna use DefaultServiceHostFactory / CreateServiceHost to self-host my
>>> services, how i can register my services? I need configure some actors for
>>> this? Using with .svc files works normally.
>>>
>>> The host factory not uses the container to resolve and then pass to host
>>> factory of WCF.
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to