Hi.
I have a WCF service. I need to implement IServiceBehavior in my class that implements ServiceContract. I have some some attributes on that class that specify service behavior. I wanted to ask if after implementing IServiceBehavior behaviors specified in attributes still apply.
Basically does
[ServiceBehavior(InstanceContextMode =...
Does the ServiceBehavior setting InstanceContextMode.Single sets a single instance regardless of the number of endpoints?
...
Why does the ServiceBehavior attribute needs to be implemented on classes and not interfaces? Is there a way to make it global for all WCF services? Is there a way to specific the ServiceBehavior in the web.config file? I would like to have all of my WCF services to implement the InstanceContextMode == PerCall.
Thank You,
...
I am having issues specifying the dataContractSerializer maxItemsInObjectGraph in host's web.config.
<behaviors>
<serviceBehaviors>
<behavior name="beSetting">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="True" />
<dataContractSerializer maxItemsInObjectGraph="214748364...
I'm new to WCF, so maybe this is something best done in another way.
Right now I have a collection of WCF Services, but I am trying to build in functionality which sends weekly emails. To do this I built another WCF service with the code below:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, AutomaticSessionShutdown...
I get an exception when there are too many objects returned:
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://.../Contract:GetBlaBlaResult. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object ...
When I try to call a WCF service I am getting the following message "An error occurred when verifying security for the message."
When I remove the custom authenication the service works no problem. I can't figure out though what I have misconfigured in my web.config. Any insight would be appreciated.
<system.serviceModel>
<serv...