Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Having issues adding Custom Behavior to a WCF service web.config file

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 05-12-2006   #1 (permalink)
sivakumar.rajesh@gmail.com
Guest


 

Having issues adding Custom Behavior to a WCF service web.config file

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>


My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding custom control to VS2008 toolbox aagranov2007 Avalon 0 08-21-2008 12:54 PM
Adding custom emoticons Dazkool Live Messenger 0 08-21-2008 09:22 AM
adding custom resolutions under vista ultimate x86 Paul Eaton Vista hardware & devices 1 05-28-2007 07:21 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51