This is a mirror of official site: http://jasper-net.blogspot.com/

WCF BINDINGS NEEDED FOR HTTPS

| Wednesday, April 27, 2011
I just finished writing my first production WCF application, which worked very well until I deployed it to our production environment.  All of a sudden none of the WCF calls would work, and I would get a JavaScript "TestService is not defined" error.  When I look inside the JS service reference (in debug mode), I got the following error:

Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]

So apparently my WCF service registered itself as HTTPS (since it is over SSL), but my binding was only configured for HTTP.  The solution is to define a custom binding inside your Web.Config file and set the security mode to "Transport".  Then you just need to use the bindingConfiguration property inside your endpoint definition to point to your custom binding.  The entire HTTPS-enabled system.serviceModel section is below:

<system.serviceModel>
<behaviors>    
 <endpointBehaviors>
  <behavior name="TestServiceAspNetAjaxBehavior">
   <enableWebScript />
  </behavior>
 </endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
 <service name="TestService">
  <endpoint address="" behaviorConfiguration="TestServiceAspNetAjaxBehavior"
   binding="webHttpBinding" bindingConfiguration="webBinding" contract="TestService" />
 </service>
</services>
 <bindings>
   <webHttpBinding>
     <binding name="webBinding">
       <security mode="Transport">

Read more: SCOTT'S BLOG

Posted via email from Jasper-net

26 comments:

Anonymous said...

iwoc longchamp bags GthYzg 5149
longchamp outlet gled http://www.longchampbagspurse.com/ longchamp outlet

Snbvu dqvdyo longchamp handbags 2903
longchamp outlet ftwp http://www.longchamphandbagsusa.com/ longchamp outlet

anpn longchamp sale HuiSq paris g 9823
longchamp outlet xgqx http://www.longchampsalepurse.com/ longchamp outlet

Jjrbp kkjrbd longchamp le pliage tjy1736
longchamp outlet czoo http://www.longchamplepliageus.com/ longchamp outlet

Bzfqc longchamp egvbrj
Tjf longchamp outlet am syv longchamp paris lnm
Cpmmh longchamp ovsu long champ ve longchamp sale kaophb
Zxp longchamp outlet kq ybw longchamp paris ign
Pbx longchamp le pliage te longchamp ctr longchamp le pliage mfx
Zvb longchamp outlet ss ad longchamp bags h longchamp paris tkd

Anonymous said...

http://www.jouw-profiel.nl/leden/usaqdjjhy/activity/6431

http://teleshev.ru/forum/topic.php?id=9893&replies=1#post-12880

http://www.pesttrauma.nl/?q=node/80009

http://animesocietyuk.com/members/usajfespf/activity/just-me/

http://jaworzyna.biz/node/50665

http://discuss.pkfz-scandal.org/topic.php?id=78454#post-82002

http://persuasioninpractice.com/forum/topic/wwwlongchamppursepariscom-091245?replies=1#post-109738

http://smolensk-24.ru/blog/342/2339

http://www.gotalpha.com/bbp/topic.php?id=230058&replies=1#post-250185

http://www.aimgreenomaha.com/aimgreenforum/topic.php?id=69970

http://jg91.kirbe.de/bbpress/topic/wwwlongchamppursepariscom-091192?replies=1#post-17112

http://nashevremya.spb.ru/bbpress/topic.php?id=3866&replies=1#post-4865

http://www.pischna.net/seminar/bbs/topic.php?id=3936&replies=1#post-4703

http://www.nosanov.com/laworbit/node/36414

http://until.six.omfc.de/bb-press/topic.php?id=166677&replies=1#post-187439

http://riovana.com/forum/members/usaugpcnu/activity/282607

http://drupal.kz/node/1992

http://www.knaoderknubben.de/forum/topic.php?id=2204&replies=1#post-2793

http://nashevremya.spb.ru/bbpress/topic.php?id=3877&replies=1#post-4876

http://oracleseeker.com/members/usatlzdcv/activity/257566

Anonymous said...

6rUzl ghd flat iron
dMoz ugg boots uk
dYhz michael kors handbags
8wLdy GHD
2mNgt burberry outlet
4xLfm ugg pas cher
1fFpg ghd nz
2bOaj louis vuitton sale
6oLas michael kors purses
9eOdj ghd straightners
4gUem ugg boots
8dJvt wholesale nfl jerseys
0oKcv michael kors outlet
6dZev ghd france
5jJxa discount ugg boots

Anonymous said...

qVab cheap ghd australia
aMke cheap uggs
xAvn michael kors purses
0oOmf ugg boots uk
9dQje chi straighteners
1lZqo michael kors handbags
4mQsi nike nfl jerseys
6eHso ghd
7eLoy cheap north face
1aLle botas ugg baratas
1tEnp mini ghd
7oZaa michael kors purses
2sKfp nike nfl jerseys
4bOxm planchas ghd baratas
1nJws ugg sale

Anonymous said...

xanax no prescription online what do generic xanax pills look like - xanax show up drug screen

Anonymous said...

buy tramadol online tramadol hcl 400 mg - tramadol overdose medscape

Anonymous said...

ugg france apupcmqr ugg pas cher zfmnhhrw bottes ugg xratexeg ugg australia xeyvukjf bottes ugg pas cher zzyqziot ugg

Anonymous said...

xanax online xanax effects overdose - yellow xanax bars 106 s

Anonymous said...

carisoprodol drug side effects of carisoprodol - kind drug carisoprodol

Anonymous said...

buy tramadol online tramadol hcl 50mg buy - tramadol for dogs drowsy

Anonymous said...

buy cheap tramadol why can you buy tramadol online - tramadol hcl long term use

Anonymous said...

buy tramadol online tramadol withdrawal in a neonate - tramadol overdose toxicology

Anonymous said...

buy cialis professional online buy viagra cialis online usa - generic cialis mail order

Anonymous said...

can you buy cialis online best place buy cialis online us - cialis from us online pharmacy

Anonymous said...

buy tramadol online no prescription cod tramadol dosage abuse - tramadol withdrawal no energy

Anonymous said...

http://landvoicelearning.com/#51438 buy generic tramadol - tramadol kali 083 dosage

Anonymous said...

tramadol 100mg methocarbamol and tramadol for dogs - tramadol dosage nz

Anonymous said...

http://buytramadolonlinecool.com/#73892 tramadol zantac - tramadol overnight shipping no prescription

Anonymous said...

http://buytramadolonlinecool.com/#56411 tramadol withdrawal emily post - buy tramadol online mastercard overnight

Anonymous said...

buy ativan online ativan side effects stopping - ativan valium

Anonymous said...

http://ranchodelastortugas.com/#51462 xanax and alcohol blackout - xanax pills order

Anonymous said...

order tramadol no prescription canadian tramadol no prescription - buy tramadol online australia

Anonymous said...

tramadol online cod tramadol wiki - buy tramadol online echeck

Anonymous said...

cheap tramadol is tramadol legal to buy online - buy tramadol buy cod

Anonymous said...

xanax medication xanax pills and dosage - xanax overdose coma

Anonymous said...

Hі there tо every single one, it's genuinely a fastidious for me to pay a visit this site, it contains precious Information.

Feel free to surf to my web site ... raspberry ketone