Click here to Skip to main content
15,914,070 members
Home / Discussions / JavaScript
   

JavaScript

 
Question99 Bottles of Beer Pin
Simewu15-Jun-15 16:29
professionalSimewu15-Jun-15 16:29 
GeneralRe: 99 Bottles of Beer Pin
PIEBALDconsult15-Jun-15 17:40
mvePIEBALDconsult15-Jun-15 17:40 
GeneralRe: 99 Bottles of Beer Pin
Simewu16-Jun-15 17:36
professionalSimewu16-Jun-15 17:36 
Answer99 Bottles of Beer Pin
Simewu16-Jun-15 17:42
professionalSimewu16-Jun-15 17:42 
GeneralRe: 99 Bottles of Beer Pin
PIEBALDconsult16-Jun-15 18:09
mvePIEBALDconsult16-Jun-15 18:09 
GeneralRe: 99 Bottles of Beer Pin
Simewu16-Jun-15 19:17
professionalSimewu16-Jun-15 19:17 
QuestionHow to bind image in jquery Pin
balajiparamkusam15-Jun-15 5:01
balajiparamkusam15-Jun-15 5:01 
QuestionThe 'contract' attribute is invalid. The value '#####.Services.SessionPool' is invalid according to its datatype 'serviceContractType' - The Enumeration constraint failed. Pin
Bigprey15-Jun-15 2:05
Bigprey15-Jun-15 2:05 
Hi,
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/CSASPNETAJAXWebChat-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.

WEB.CONFIG's SERVICE
XML
<services>
      <service name="WebChat.Services.Transition">
        <endpoint address="" behaviorConfiguration="Sever.Services.TransitionAspNetAjaxBehavior"
            binding="webHttpBinding" contract="WebChat.Services.Transition" />
      </service>
      <service name="WebChat.Services.SessionPool">
        <endpoint address="" behaviorConfiguration="Sever.Services.SessionPoolAspNetAjaxBehavior"
            binding="webHttpBinding" contract="WebChat.Services.SessionPool" />
      </service>
    </services>

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/CSASPNETAJAXWebChat-c4c9b8fe#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.
GeneralRe: The 'contract' attribute is invalid. The value '#####.Services.SessionPool' is invalid according to its datatype 'serviceContractType' - The Enumeration constraint failed. Pin
Kornfeld Eliyahu Peter15-Jun-15 7:42
professionalKornfeld Eliyahu Peter15-Jun-15 7:42 
QuestionApplications that leverage Microsoft AJAX.NET (Atlas) can be vulnerable to JavaScript hijacking, Pin
Stephen Holdorf11-Jun-15 7:28
Stephen Holdorf11-Jun-15 7:28 
AnswerRe: Applications that leverage Microsoft AJAX.NET (Atlas) can be vulnerable to JavaScript hijacking, Pin
Afzaal Ahmad Zeeshan12-Jun-15 11:06
professionalAfzaal Ahmad Zeeshan12-Jun-15 11:06 
Questionwhere is require file? Pin
Ferd Really11-Jun-15 5:30
Ferd Really11-Jun-15 5:30 
AnswerRe: where is require file? Pin
R. Giskard Reventlov11-Jun-15 6:04
R. Giskard Reventlov11-Jun-15 6:04 
GeneralRe: where is require file? Pin
Ferd Really11-Jun-15 6:55
Ferd Really11-Jun-15 6:55 
GeneralRe: where is require file? Pin
Ferd Really11-Jun-15 9:33
Ferd Really11-Jun-15 9:33 
Questionwebkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
joshi akhilesh10-Jun-15 1:30
professionaljoshi akhilesh10-Jun-15 1:30 
AnswerRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
Richard Deeming10-Jun-15 3:21
mveRichard Deeming10-Jun-15 3:21 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
joshi akhilesh10-Jun-15 3:30
professionaljoshi akhilesh10-Jun-15 3:30 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
Richard Deeming10-Jun-15 3:53
mveRichard Deeming10-Jun-15 3:53 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
joshi akhilesh10-Jun-15 18:09
professionaljoshi akhilesh10-Jun-15 18:09 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
_AK_16-Jun-15 9:42
_AK_16-Jun-15 9:42 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
_AK_16-Jun-15 9:41
_AK_16-Jun-15 9:41 
GeneralRe: webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not working for ipad Pin
Richard Deeming17-Jun-15 0:38
mveRichard Deeming17-Jun-15 0:38 
QuestionHow to show the day when i pick the date from the calender Pin
kalaybharathi9-Jun-15 23:20
kalaybharathi9-Jun-15 23:20 
AnswerRe: How to show the day when i pick the date from the calender Pin
Afzaal Ahmad Zeeshan10-Jun-15 1:13
professionalAfzaal Ahmad Zeeshan10-Jun-15 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.