Questions tagged [wcffacility]

The WCF Facility allows for the use of the Windsor container for WCF Services.

The WCF Integration facility enables the benefits of runtime dependency injection offered by the Windsor container and its facilities. Examples of utilizing such features are data access layers or other external dependencies of a service. Furthermore, the services registered with the container can use other facilities, such as the logging or transaction management. Finally, any extensions (i.e., IServiceBehavior) to the services that are registered with the container will be automatically applied to all services registered with the container.

It is not here to replace WCF configuarion, and it deals specifically just with creating/disposing of services using Windsor. There are already good tools to configure WCF, and this approach takes full advantage of them.

60 questions
9
votes
1 answer

CastleWindsor 3.0 and DefaultServiceHostFactory.RegisterContainer()?

The following does not compile: DefaultServiceHostFactory.RegisterContainer(Container.Kernel); The static method does not seem to exist in Castle 3.0 - I checked the breakingchanges.txt and did not see this listed. What am I missing?
znelson
  • 919
  • 1
  • 10
  • 24
9
votes
1 answer

Occasional error on production server: Method is not supported on this proxy

One of 4 production servers once in a while generates tons of error claiming: Method RunRules is not supported on this proxy, this can happen if the method is not marked with OperationContractAttribute or if the interface type is not marked with…
Zhen.Lee
  • 189
  • 8
7
votes
1 answer

Using Castle Windsor WcfFacility to create client endpoints

I have created three assemblies. A web site, a WCF service and a contracts assembly that holds the interfaces that the services implement. I would like to use Castle Windsor to create the services for me on the client (website) so that I do not have…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
6
votes
1 answer

Do I need svc file to setup Castle Wcf Facility for non-HTTP services

I am confused about the castle wcf facility registration. I read some blog posts for BasicHttpBinding. But could not find a clear easy sample to setup a net.tcp setup. I want to host the service from a console application... I wrote something like…
Serdar
  • 1,416
  • 2
  • 17
  • 43
6
votes
1 answer

Release policy for WcfService proxy dependency in object having PerWebRequest lifestyle

If I have a PerWebRequest object that has a wcf proxy dependency with a PerThread lifestyle, will the container a) use the same proxy instance after the container auto-releases the parent object? b) will the releasing of the PerWebRequest object…
kappasims
  • 124
  • 9
5
votes
2 answers

Best way to host WCF services for SOA web application

I'm developing a website which attempts to utilize the SOA pattern. The services service both the main web app as well as an HTML5 mobile app and native iPhone and Android apps through the use of a facade service to provide a simplified API. The web…
user156888
5
votes
2 answers

ravendb, castle IoC ,Wcf facility - doc session liefstyle

What's the recommended lifestyle for raven doc session and store under a windsor ioc, wcf facility setup hosted in IIS? I keep seeing this error: Error TempPathInUse (JET_errTempPathInUse, Temp path already used by another database instance)` here…
user156888
4
votes
2 answers

Castle WCF Facility, Use of generic interface for non generic contract

I tried to minimize writing of code for WCF CRUD part of big project with use of generics and castle WCF facility. I have WCF service contract: [ServiceContract] public interface IResourceService : ICRUDService { …
semeai
  • 96
  • 1
  • 7
4
votes
0 answers

Adding Operation Behaviors with WCF Facility

I'm using the WCF Facility for the first time to host a couple services, both in a console app (for easy debugging) and IIS (for production). The services use a net.msmq endpoint. This is how I'm hosting the service in the console app…
Diego Mijelshon
  • 52,548
  • 16
  • 116
  • 154
3
votes
1 answer

How to host multiple services using one WcfFacility

I'm trying to host multiple services using one WcfFacility and IIS, and I'm seeing some confusing results. Here is my configuration: var baseUri = new Uri(HttpContext.Current.Request.Url.GetComponents(UriComponents.SchemeAndServer,…
tom.dietrich
  • 8,219
  • 2
  • 39
  • 56
3
votes
1 answer

Is it Possible to turn on IncludeExceptionDetailInFaults with castle windsor fluent api?

I am getting this exception. The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the …
Serdar
  • 1,416
  • 2
  • 17
  • 43
3
votes
1 answer

How can I register all my services with castle windsor wcf facility

Basicly I can register one service like this. Container.Register(Component.For() .AsWcfClient(new DefaultClientModel() { Endpoint = WcfEndpoint …
Serdar
  • 1,416
  • 2
  • 17
  • 43
3
votes
2 answers

Using Windsor Castle and WcfFacility to create WCF proxies with Message Security and username credentials

OK we are using message security with username credentials (and X509 certificate encryption) to communicate with our WCF service. I am not happy with this approach but that is not the point of question and I do not want to get into that. I am using…
Aliostad
  • 80,612
  • 21
  • 160
  • 208
3
votes
1 answer

Using PerWcfSession lifestyle with Castle WCF Integration Facility

The following code uses the Castle Windsor 3.0's WCF Integration Facility to register a WCF self-hosted service: using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
2
votes
0 answers

Castle configuration for Service with callback

Here is my castle config in win forms client The…
Hans Coco
  • 21
  • 1
1
2 3 4