Hi. I'm trying to use WcfFacility in a windows service (so I don't have any SVC files and not host Wcf services in IIS). Windows servce seems to start and work until first connection which doesn't show any errors while debugging but results in Windows service being terminated and the client never receiving any response and timing out eventually. I cannot seem to find any information on this anywhere.
This is how I configure everything in the server: container.AddFacility<WcfFacility>(); container.Register(Component.For<RefreshChannelPolicy>()); container.Register(Component.For<IService>().ImplementedBy<Service>().LifeStyle.PerWcfOperation().AsWcfService()); WCF service configuration is in app.config (is this ok? It seems that it all gets picked up and used). I use complex custom bindings and behaviors and need to keep it easily configurable. Also, the transport is tcp with custom settings. When a client connects, the server processes the request and then fails with the following errors being logged into EventLog: Error #1: ------------ Application: Service.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.CallbackException Stack: at System.Runtime.Fx +IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped*) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) Error #2: ------------ Faulting application name: Service.exe, version: 1.0.0.0, time stamp: 0x4e1b6c66 Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf Exception code: 0xe0434352 Fault offset: 0x0000b727 Faulting process id: 0x2b4c Faulting application start time: 0x01cc401253bdfcc5 Faulting application path: D:\Service.exe Faulting module path: C:\Windows\syswow64\KERNELBASE.dll Report Id: a6667295-ac05-11e0-a50e-002481f6d087 Is there anything I am missing? Any help would be appreciated as I spent a lot of time on this already. Thanks, Alex -- 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.
