Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
155 views

Take only first certificate found

Having a behaviour for a endpoint, I specified a serviceCertificate to be used. Everything works fine, but every year we get a new certificate on our servers while the old ones are being left ...
Chrᴉz remembers Monica's user avatar
5 votes
1 answer
140 views

Can you change a BehaviorExtension with WCF configuration?

My site calls a service (let's call it FooService) that requires a very complex set of authentication protocols. The protocols are all wrapped up in a custom ClientCredentials behavior that is ...
John Wu's user avatar
  • 52.1k
1 vote
1 answer
148 views

BizTalk EndpointBehavior not showing - Installing BLogical BizTalkRESTHandler

On BizTalk 2013/R2. I'm following steps here: http://blogical.se/blogs/mikael/archive/2012/05/28/rest-start-kit-for-biztalk-server.aspx. I have GAC'ed the bLogical.BizTalk.RESTBehavior.dll, and ...
NealWalters's user avatar
  • 18.1k
1 vote
1 answer
84 views

dictionary is not updating in wcf service

So, I have a very simple WCF client-server app. The thing is, the service gets messages from the client and it also receives pending messages requests. However, it does not return a message to client. ...
small-j's user avatar
  • 309
0 votes
1 answer
351 views

IServiceBehavior : prevent applying Message inspectors for some messages

On a WCF Service, I have added an attribute [WebAppServiceBehavior] which checks for some headers in messages of the service for authenticity. Is it possible what I could use other attributes on ...
Abdul Rehman Sayed's user avatar
2 votes
0 answers
37 views

Weird Service Behavior

To give you some background, I've been trying to modify our local hosting arrangement so that an existing WCF service is hosted in IIS locally, dispensing of the current host console application. I ...
Silly Question Asker's user avatar
0 votes
1 answer
120 views

How to test for IncludeExceptionDetailInFaults

I can check if the behavior is set or not with: Attribute.GetCustomAttribute(typeof(MyService), typeof(ServiceBehavior)) How do I check if a specific property is defined and set within the ...
sOltan's user avatar
  • 493
0 votes
1 answer
602 views

How to set ServiceThrottlingBehavior for IIS hosted WCF service programmatically

I'm trying to figure out where to shove this object: ServiceThrottlingBehavior stb = new ServiceThrottlingBehavior { MaxConcurrentSessions = 100, MaxConcurrentCalls = 100, ...
BVernon's user avatar
  • 3,707
2 votes
0 answers
498 views

WCF failed to update the configuration file when adding service

I have added a service behavior extension to the default service behavior for logging un-handled exceptions, which is working as expected. <extensions> <behaviorExtensions> <add ...
Andy Clark's user avatar
  • 3,513
2 votes
1 answer
893 views

Adding Behavior Extension to PreCompiled Web Site

I'm trying to add the CORS headers to a WCF service which is part of a precompiled web site project in VS 2012. The error The type 'EnableCrossOriginResourceSharingBehavior, MyWebSite, Version=0.0.0....
JNF's user avatar
  • 3,734
1 vote
1 answer
264 views

Apply service behavior to Service Reference

I have added to my web application a Service Reference to a .svc web service on a remote server. When I call a method from this webservice i get the following error. The server was unable to ...
jayt.dev's user avatar
  • 1,005
0 votes
1 answer
644 views

Is there a way to pass parameters to a custom Service Behavior through configuration

I have multiple WCF services hosted in IIS to which I'm applying the same custom service behavior. I'm looking for a way to pass several parameters to the behavior through configuration, such as in ...
Mark Meyerovich's user avatar
0 votes
0 answers
332 views

Getting 401 when WCF OperationInvoker calls another WCF service

We have an attribute called LoggingImplementationBehavior that causes a WCF Logging service to get called before and after service calls it's attached to. This works great both locally and on the ...
BVernon's user avatar
  • 3,707
0 votes
1 answer
296 views

WCF: One service with two behaviours (behaviorConfiguration)

I have a service having two Behaviours. One is for throttling and another is for Metadata exchange. How to enable Both in a service? When we enable first, Second gets disabled and vice-versa. My ...
Aditya Bokade's user avatar
0 votes
1 answer
1k views

How to get type(as in request.GetType) of a request message in Service Behavior of WCF Service

I am writing a custom ServiceBehavior which expects me to know the Type of the request message to infer if the message is decorated with a custom attribute. My Sample Contract could look like: ...
Dibyendu's user avatar
2 votes
2 answers
6k views

How to enable WCF help pages through ServiceBehavior configuration?

I am looking to enable generated Help Pages for a WCF service that is configured with a <ServiceBehavior> instead of a <EndpointBehavior>. 95% of my searches result in something to do with ...
WebDevNewbie's user avatar
  • 1,863
0 votes
1 answer
1k views

WCF IMetadataExchange Error

I have created a service host with following configuration. <?xml version="1.0"?> <configuration> <system.serviceModel> <services> <service name="MathServiceLib....
Dev's user avatar
  • 51
0 votes
1 answer
140 views

WCF Per Session and Blocking Collection for Logging

Anyway to log a Per Session Wcf Service to a single file without causing file locking issues or should it be a seperate application?
Dys1's user avatar
  • 90
0 votes
1 answer
2k views

Multithreaded Singleton in a WCF - What is the appropriate Service Behavior?

I have a class (ZogCheckPublisher) that implements the multithreaded singleton pattern. This class is used within the exposed method (PrintZogChecks) of a WCF service that is hosted by a Windows ...
Joe's user avatar
  • 83
0 votes
2 answers
410 views

WSDualHttpBinding in WPF not responding

I have problem with using WCF WSDualHttpBinding only in WPF application. Before changes this WCF worked. Now not working. I changed only ServiceBehaviour (ConcurrencyMode and InstanceContextMode) to: ...
Musketyr's user avatar
  • 773
1 vote
2 answers
545 views

Wcf ignore MaxItemsInObjectGraph value

Our WCF service has the following exception: Maximum number of items that can be serialized or deserialized in an object graph is '32767'. Change the object graph or increase the ...
Adiel's user avatar
  • 55
1 vote
1 answer
530 views

ServiceBehavior on client side

Why serviceBehavior part is not generated on client side automatically after ServiceReference tool in Visual Studio as endpointBehavior?
Saint's user avatar
  • 5,469
1 vote
0 answers
98 views

Did something change WRT ServiceBehavior.IncludeExceptionDetailInFaults?

I have the feeling that something changed in WCF 4.5 with regards to the IncludeExceptionDetailInFaults flag. I am usually pretty diligent about defining fault messages, mapping them to exceptions and ...
Valo's user avatar
  • 2,039
1 vote
0 answers
70 views

Do specific code depending on the WCF service behavior

Is it a good idea to get the current WCF behavior withing a WCF operation contract and do some stuff depending on the current behavior? If no: Why not? If yes: How can I do that? For example ...
user2339890's user avatar
0 votes
2 answers
1k views

IIS WCF Config: service only uses default behavior

I am learning about WCF deployment in IIS and I have found something strange. Basically my service only uses the default behavior regardless of how I set the behaviorConfiguration attribute of ...
user avatar
1 vote
2 answers
3k views

Default InstanceContextMode in WCF

In WCF, if we don't specify the InstanceContextMode of the ServiceBehaviour specifically, what is the default mode of the following? PerCall PerSession Single Thanks.
TTCG's user avatar
  • 9,093
5 votes
1 answer
1k views

ServiceBehavior for WCF REST

I have a problem configuring a ServiceBehavior for my WCF service. Some background. Basically I am developing a REST service WCF that is supposed to run on IIS. I need to be able to log exceptions ...
user1842417's user avatar
0 votes
1 answer
116 views

Is there a way to force IIS to invoke CustomServiceHost?

All, I have developed a WCF Web Service and hosted it in IIS7.5. The service behavior is instanceContextMode=InstanceContextMode.PerSession and hence IIS creates an service instance during the first ...
Jegan Kunniya's user avatar
8 votes
1 answer
5k views

Different Service behaviors per endpoint

The situation We are implementing different sort of security on some WCF service. ClientCertificate, UserName & Password and Anonymous. We have 2 ServiceBehaviorConfigurations, one for ...
Preben Huybrechts's user avatar
1 vote
1 answer
659 views

How to pass information fetched from message header in DispatchMessageInspector to ServiceContract?

I am trying to pass user information from controller to service layer. IClientMessageInspectors and IDispatchMessageInspectors seem to be the most likely solution. After going through Building an ...
Arnab Chakraborty's user avatar
0 votes
2 answers
865 views

WCF Service Behavior to add an operation to my services

I'd like to create a service behavior which adds an extra service operation to my service. This way I can add the behavior to any of my services (existing and future) and my service will all be able ...
EdmundYeung99's user avatar
0 votes
1 answer
1k views

Syntax to Specify both ServiceBehavior and EndpointBehavior?

Looking at http://msdn.microsoft.com/en-us/library/ms731303.aspx, and http://msdn.microsoft.com/en-us/library/ms789007.aspx, examples are given which specify ServiceBehavior, but is there a way to ...
ossek's user avatar
  • 1,648
0 votes
1 answer
363 views

How to get data from a WCF data contract object into the message headers

All of my data contract objects in my service inherit from BaseMessage... [DataContract(Name = "BaseMessage", Namespace = "http://www..."] public class BaseMessage { [DataMember] public Guid ...
Remotec's user avatar
  • 10.7k
2 votes
1 answer
2k views

Is the ServiceBehaviour's namespace important for web service versioning?

Simple, as that... is the ServiceBehaviour's namespace important for web service versioning? Meaning that for forward/backward compatibility of clients to server is this namespace involved in any way? ...
Learner's user avatar
  • 3,386
0 votes
1 answer
109 views

Exclude the WCF ServiceBehaviorExtension for one particular endpoint

I would like to exclude the custom Behavior extension which expects a custom Header for one of my service. Is it possible? I read about RemoveBehaviorExtension element but there is no mention on where ...
ioWint's user avatar
  • 1,619
3 votes
1 answer
784 views

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 ...
Serdar's user avatar
  • 1,516
2 votes
2 answers
4k views

WCF - How to attach serviceBehaviors to WCF endpoint (no <service> tag)

I am consuming a third party WCF service and its config is below (a portion of it). I wanted to assign serviceBehaviors to endpoint, but there is no <service> tag here. In this case, how do you ...
CoolArchTek's user avatar
  • 3,829
1 vote
1 answer
4k views

How to get WCF and Java clients to work. Expert help needed

Background (a wee bit long): A few years back I wrote for a customer a WCF service that is configured to use the basicHttpBinding with security mode = "Transport" with clientCredentialType = "...
norgie's user avatar
  • 517
14 votes
5 answers
45k views

WCF Error "Maximum number of items that can be serialized or deserialized in an object graph is '65536'"

I am receiving the following error on a WCF call: Maximum number of items that can be serialized or deserialized in an object graph is '65536' I've read a ton of forum posts and many of them ...
Scot's user avatar
  • 582
2 votes
1 answer
713 views

Can I call multiple operation contracts when ConcurrencyMode is Single

I have a WCF service with 3 operation contracts. I set [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single)] for this service. My basic doubt is can I able to call all the 3 service at a time or ...
Maddy's user avatar
  • 174
4 votes
1 answer
4k views

Adding attribute to BehaviorExtensionElement

I'm adding a custom behaviorExtensionElement for WCF and want to add an attribute that can be read when the configured element is being read, e.g. <system.serviceModel> <extensions> ...
ConfusedNoob's user avatar
  • 10.2k
22 votes
2 answers
23k views

WCF ConcurrencyMode Single and InstanceContextMode PerCall

I have an issue with my wcf service config. I would like every call to my service create a new instance of the service. For the concurrency I would like to one call is finished before another start. ...
maxence51's user avatar
  • 1,054
1 vote
1 answer
2k views

Disabling web.config inheritance for behaviorExtensions

I'm trying to add a web application in IIS under an existing (root level) website. The root level website's web.config file defines certain behaviorExtensions under system.serviceModel: <...
Attila Kun's user avatar
  • 2,405
6 votes
1 answer
13k views

Simple example of IServiceBehavior and ApplyDispatchBehavior

I am trying to Plug Unity into a WCF Service Library with a Service Behavior. I need a simple bare bones example of a Service Behavior. All I want to do is setup my IOC Unity Container on startup of ...
Vaccano's user avatar
  • 82.1k
5 votes
1 answer
2k views

WCF - Custom Credentials & Security Tokens

I'm fairly new to WCF development and have run into a couple problems whilst learning the framework. I have a service api which must support both REST & SOAP. So far this has been easy to ...
Daniel's user avatar
  • 1,873
3 votes
1 answer
878 views

Why is a ServiceBehavior an attribute of the Service Class and not the Contract?

I've found plenty of places where people point out that a ServiceBehavior should be an attribute of the service class and not the contract, and this definitely seems to be the case. Why is this?
djmc's user avatar
  • 873
0 votes
1 answer
602 views

Can I create a ServiceBehavior that will replace the OperationBehaviors I already apply to every Operation in my Service?

I know all the operations in this service will require the same OperationBehavior.. could I implement a ServiceBehavior that will perform the same functionality before the operation is run? I ...
djmc's user avatar
  • 873
1 vote
2 answers
814 views

Is there a .net equivalent of a Java initialization Servlet?

Is there a .net equivalent of a Java initialization Servlet? While we're at it, the equivalent of a filter? And finally if said thing exists (filters) can these run before/after a request is made to ...
iggymoran's user avatar
  • 4,079
28 votes
8 answers
54k views

An error occurred when verifying security for the message

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 ...
Matt Klepeis's user avatar
  • 1,722
2 votes
1 answer
7k views

WCF method throws an exception of maximum items in an object graph is '65536'

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://...
Shahar G.'s user avatar
  • 1,510