asp.net - WCF Service support file jsdebug fails to load -


i have wcf service gets called client side javascript. call fails service null javascript error. webdevelopment helper trace shows calls load jsdebug support file results in 404 (file not found) error.

restarting iis or clearing out temp asp.net files or setting batch="false" on compilation tag in web.config not resolve problem

from browser

https://myserver/myapp/services/myservice.svc displays service metadata

however

https://myserver/myapp/services/myservice.svc/jsdebug results in 404.

the issue seems https protocol. http /jsdebug downloads supporting js file.

any ideas?

tia

figured out!

here services configuration section web.config

look @ bindingconfiguration attribute on endpoint. value "webbinding" points binding name="webbinding" tag in bindings , tells service use transport level security https. in case attribute value empty causing webservice request /js or /jsdebug file on https fail , throw 404 error.

<services>       <service name="myservice">         <endpoint address="" behaviorconfiguration="myserviceaspnetajaxbehavior" binding="webhttpbinding" bindingconfiguration="webbinding" contract="services.myservice" />       </service>     </services>     <bindings>       <webhttpbinding>         <binding name="webbinding">           <security mode="transport">           </security>         </binding>       </webhttpbinding>     </bindings> 

note bindingconfiguration attribute should empty ("") if service accessed via http instead of https (when testing on local machine no certs)

hope helps someone.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -