I need to host the WCF service in IIS, which provides wsHttpBinding. This part works beautifully using the system.serviceModel settings in my web.config.
Now I need to configure the configuration (e.g. maxReceivedMessageSize and other parameters) through the configuration assembly, which is also used by the client (s).
How is this possible? I do not see the processing in my .svc file, as in my client, in order to overload the binding configuration. I suspect that this is because ISS is automatically processed when the application starts, unlike the Windows service, where you need to manually declare the client / channel.
How am i right And will there be a solution to his problem (if I still want hosting inside IIS) to delete the entire configuration and instead create an HttpHandler that takes care of hosting at startup?
If I'm right, I think I just spent a lot of space on this, but I can't help but think that I missed something.
source
share