javascript - WCF - There was no channel actively listening -


i working on application need call wcf service javascript, application works fine when debugging in visual studio experience following when deploying server.

i able access webservice via url https://www.host.com/new/webservices/ajaxservice.svc when try access javascript proxy following url: https://www.host.com/new/webservices/ajaxservice.svc/js

i getting following exception log in event viewer

 webhost failed process request.  sender information: system.servicemodel.activation.hostedhttprequestasyncresult/28547071  exception: system.web.httpexception (0x80004005): there no channel actively listening @ 'https://localhost/new/webservices/ajaxservice.svc/js'. caused incorrect address uri. ensure address message sent matches address on service listening. ---> system.servicemodel.endpointnotfoundexception: there no channel actively listening @ 'https://localhost/new/webservices/ajaxservice.svc/js'. caused incorrect address uri. ensure address message sent matches address on service listening.    @ system.servicemodel.activation.hostedhttptransportmanager.httpcontextreceived(hostedhttprequestasyncresult result)    @ system.servicemodel.activation.hostedhttprequestasyncresult.handlerequest()    @ system.servicemodel.activation.hostedhttprequestasyncresult.beginrequest()    @ system.runtime.asyncresult.end[tasyncresult](iasyncresult result)    @ system.servicemodel.activation.hostedhttprequestasyncresult.end(iasyncresult result)  process name: w3wp  process id: 31736 

and following error return on screen

{"message":"there error processing request.","stacktrace":"","exceptiontype":""} 

i have added following web.config

  <behaviors>       <endpointbehaviors>         <behavior name="applicationname.ajaxserviceaspnetajaxbehavior">           <enablewebscript />         </behavior>       </endpointbehaviors>     </behaviors>     <servicehostingenvironment aspnetcompatibilityenabled="true"     />      <services>       <service name="applicationname.ajaxservice">         <endpoint address="" behaviorconfiguration="applicationname.ajaxserviceaspnetajaxbehavior"           binding="webhttpbinding" bindingconfiguration="webbinding" contract="applicationname.ajaxservice" />       </service>     </services> 

thank in advance


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -