Monday, October 24, 2011 2:13 PM
I have been looking for a solution to this problem without much luck. I am adding a extensions to my web.config as described there: http://autodocs.codeplex.com/ but got the following error:Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred creating the configuration section handler for system.serviceModel/behaviors: Extension element 'autodocsBehaviorExtension' cannot be added to this element. Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions.
Parameter name: element
Am I missing a reference? I have tried to GAC the Autodocs assembly but still no luck. What could explain this problem?
Here is an extract of my web.config:
<add name="autodocsBehaviorExtension" type="Autodocs.ServiceModel.Web.AutodocsBehaviorExtension,Autodocs.ServiceModel.Web, Version=18.104.22.168, Culture=neutral, PublicKeyToken=ad2dc2e36787b789"/>
<!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<autodocsBehaviorExtension/> <!-- this is the error -->
Tuesday, October 25, 2011 1:40 AMModerator
Hello, please make sure you're using the correct type. I don't know if this is a service behavior extension or endpoint behavior extension. Make sure you've put it in the right place. You can also ask the question on http://autodocs.codeplex.com/discussions.
By the way, WCF 4's REST service has built-in help page.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
Windows Azure Technical Forum Support Team Blog
- Marked As Answer by jagaurg Tuesday, October 25, 2011 3:56 AM
Tuesday, October 25, 2011 3:56 AMsuperbe. Excactly what I was looking for. Thank you Yi-Lun
- Edited by jagaurg Tuesday, October 25, 2011 3:56 AM