I'll try a took at this. Do you happen to have a test to demonstrate this behavior and make sure we are on the same page?
thanks, craig On Fri, Aug 28, 2009 at 2:31 PM, Tim Scott <[email protected]>wrote: > > That won't work. When I specify ActAs, it fails unless I also specify > the full URI to the hosted location of the service (in the At > method). When I do that, IIS gets confused. Besides, it smells bad > to specify the hosted URL of a service in code. > > On Aug 28, 2:10 pm, Craig Neuwirt <[email protected]> wrote: > > On Fri, Aug 28, 2009 at 1:45 PM, Tim Scott <[email protected] > >wrote: > > > > > > > > > I am using the WcfFacility to host a service that accepts large string > > > content. When using the defaults, I get an error to that says I myst > > > maxStringContentLength. That makes perfect sense. I am trying to do > > > it like this: > > > > > container.AddFacility<WcfFacility>(x => x.DefaultBinding = > > > myLargeStringContentBinding) > > > > That should work, but you still need to add the .ActAs(new > > DefaultServiceModel() > > .AddEndpoints(XXX) > > > > > > > > > It seems the sevice does not use this binding, because I get the same > > > error. I tried instead using the ActAs method of component > > > registration: > > > > > .ActAs(new DefaultServiceModel().AddEndpoints(WcfEndpoint.BoundTo > > > (myLargeStringContentBinding))) > > > > > However, this fails unless I specify the full actual hosted location > > > of service in the At method of DefaultServiceModel. Now, I not make > > > sense to me that I would have to specify the address of a service. > > > That aside, the host is also a web app, and IIS does not like if when > > > I specify the At address. I get intermittent errors hitting the > > > website. > > > > > Anyone know a way to set maxStringContentLength for my service? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
