jQuery was not called error with Cached WCF -


i have spun wcf service jquery ajax call. error is

"jquery182021375292306765914_1377272303506 not called"

it works fine, until try add caching wcf, here .net code

    [operationcontract]     [description("gets session list")]     [webget(bodystyle = webmessagebodystyle.bare,     requestformat = webmessageformat.json,     responseformat = webmessageformat.json,     uritemplate = "getsessionlist")]     [aspnetcacheprofile("cachefor60seconds")]     list<session> getsessionlist(); 

and web.config

 <caching>   <outputcachesettings>     <outputcacheprofiles>       <add name="cachefor60seconds" duration="3600" varybyparam="none"/>     </outputcacheprofiles>   </outputcachesettings> </caching> 

i have aspnetcompatibilityenabled="true"

and here js code

   var location = json.stringify(j$("#filter option:selected").val());         j$.ajax({             cache: true,             url: "http://localhost:57200/service.svc/getsessionlist",             data: "{}",             type: "get",                            jsonpcallback: "sessionlist",             contenttype: "application/javascript",             datatype: "jsonp",             error: function(xhr, status, error) {                 alert(error.message);             },             success: function (data) {                 builthtml(data);             },             complete: function () {                 j$("#button").disabled = false;                 j$('#searchbox').removeclass('loading');                 j$("#resultsblock").show();             }          }); 

if set wcf cache 1 (aka never caches unless fast), works fine, if raise when cached response triggered, error block fires in jquery. calling wcf browser caching turned on works fine not issue there, ajax response.

any appreciated.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -