![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | WCF service custom Behavior in web.config I am trying to add a custom behavior to the web.config of a wcf service. I have created the custom Behavior and the Behavior Section classes and added the following code to the Web.config of the service. When I tested out the service, looks like the custom behavior was not getting applied. If possible please let me know what needs to be done for the custom behavior to start working for the client too. Any help is greatly appreciated. Given below is the contents of the web.config file. Thanks!! <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.serviceModel> <services> <service name="Core.Services.PatientService" behaviorConfiguration="SecurityTokenValidatorBehavior"> <endpoint contract="Core.Services.IPatientService" binding="wsHttpBinding"/> </service> </services> <behaviors> <behavior name="SecurityTokenValidatorBehavior" returnUnknownExceptionsAsFaults="true"> <SecurityTokenValidatorBehaviorSection /> </behavior> </behaviors> <extensions> <behaviorExtensions> <add name="SecurityTokenValidatorBehaviorSection" type="Core.Services.ServiceExtensions.SecurityTokenValidatorBehaviorSection,Core.Services.ServiceExtensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> </behaviorExtensions> </extensions> </system.serviceModel> </configuration> |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System.UnauthorizedAccessException with custom service | cedric | .NET General | 0 | 05-24-2008 09:45 AM |
| winrm connection to custom web service | Simon | PowerShell | 4 | 05-02-2008 09:48 AM |