Skip to main content
Planview Customer Success Center

Web Services API does not work in a WCF environment without installing WSE on Win2008 R2 server (2012)

Symptoms:
WSE is not installed on the server as it is not a prerequisite if WCF is used, and is not supported by Microsoft. After the upgrade from 2010 SP3 API to 2012, however, API doesn't work unless WSE is also installed on the server.

Error/warning messages:
Try one of the followings to reveal the symptoms:
- add a service reference to your v2012 Web Services API project, or
- access http://[EntrpriseURL]/CPWebService/WSLogin.svc?wsdl

Following error is returned:

Server Error in '/CPWebService' Application.

Configuration 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 'ScenarioComparisonFaults' cannot be added to this element. Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions.
Parameter name: element

Source Error:

Line 488: < /service>
Line 489: < /services>
Line 490: < behaviors>
Line 491: < serviceBehaviors>
Line 492: < behavior name="ServerCookieServiceBehavior">


Workaround:
If WSE is not installed on the server, comment out the following lines in web.config file of the CPWebService website:

line 5:
< section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

line 91:
< add type="Microsoft.Web.Services2.WebServicesExtension, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="1" group="Low"/>

line 95, whole section:

< microsoft.web.services2>
< diagnostics/>
< security>
< securityTokenManager type="Changepoint.CPWebService.CPTokenManager, CPWebService" qname="wsse:UsernameToken" xmlns:wsse="http://docs.oasis-open.org/wss/2004/...secext-1.0.xsd"/>
< /security>
< /microsoft.web.services2>