Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 15th, 2015, 07:51 AM
Registered User
Join Date: Nov 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default The 'contract' attribute is invalid. The value '####.Services.SessionPool' is invalid

I have almost developed a website using Dot net, C#, Jquery, Javascript etc. Now, for having chat among visitors, we picked the AJAX code from https://code.msdn.microsoft.com/CSAS...bChat-c4c9b8fe and customized it...

When we see the demo in there, it successfully shows the chatboxes and implements the chats well... But we couldn't able to integrate it with our already built web application (Web forms and not MVC). Since we get no errors, its very hard to predict the issue clearly. Do I have to make some changes in web.config?

Getting a warning alone which is

Warning 1 The 'contract' attribute is invalid - The value 'PlayZone.Services.SessionPool' is invalid according to its datatype 'serviceContractType' - The Enumeration constraint failed. E:\Projects\PlayZoneJUNE04\PlayZone\Web.config 57 48 PlayZone

Actually, I took the code from MSDN and pasted it successfully. The problem seems to occur in the Web.Config's service region.


<service name="WebChat.Services.Transition">
<endpoint address="" behaviorConfiguration="Sever.Services.TransitionAs pNetAjaxBehavior"
binding="webHttpBinding" contract="WebChat.Services.Transition" />
<service name="WebChat.Services.SessionPool">
<endpoint address="" behaviorConfiguration="Sever.Services.SessionPoolA spNetAjaxBehavior"
binding="webHttpBinding" contract="WebChat.Services.SessionPool" />

Here are the overall details
i) I downloaded Ajax based group chat, which was done following the procedures on the page https://code.msdn.microsoft.com/CSAS...c9b8fe#content.
ii) The sample alone as a separate site works fine... But when combined with my website code, it shows the warnings and the chat is not working.
iii) Our Dot net framework version is 4.5... but the web chat's framework on MSDN shows version 4 when run alone.
iv) Server - IIS (Local machine)
Hope this helps you to understand further. Thanks for your concern and have a nice day ahead.

Similar Threads
Thread Thread Starter Forum Replies Last Post
DTOs Insufficient w/ Contract-First Web Services ? sdavi1010 BOOK: Professional Oracle WebLogic Server 1 December 2nd, 2009 06:47 AM
Error msg: Invalid connection string attribute cJeffreywang ASP.NET 2.0 Basics 3 April 28th, 2008 11:40 AM
Invalid Token sani723 XSLT 2 December 25th, 2007 01:42 AM
Invalid Connection String Attribute rstelma Classic ASP Databases 8 July 6th, 2005 06:31 PM
Invalid ProgID attribute kimmy VB Components 1 August 4th, 2004 10:59 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.