<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8745848922175186593</id><updated>2011-10-05T23:40:19.051-07:00</updated><category term='GoDaddy'/><category term='URLs'/><title type='text'>Web Services APIs - Blogs by Ajit Singh</title><subtitle type='html'>Web services APIs using Windows Communication Foundation ( WCF )</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ajitapi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ajitapi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ajit Singh</name><uri>http://www.blogger.com/profile/17889678799981918534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://photos1.blogger.com/blogger/5983/846/1600/AjitSingh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8745848922175186593.post-2460941632687382908</id><published>2010-07-24T06:48:00.001-07:00</published><updated>2010-07-24T06:48:09.364-07:00</updated><title type='text'>Configuring WCF service work behind Load Balancer</title><content type='html'>&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/971842/en-us"&gt;http://support.microsoft.com/kb/971842/en-us&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Consider the following scenario: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;You host a WCF service on an instance behind a load-balancer.&lt;/li&gt;    &lt;li&gt;You use the “Add Service Reference” command or the &lt;b&gt;svcutil.exe&lt;/b&gt; command-line tool to download the metadata from the service.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;In this scenario, when you try to generate a proxy from the metadata, the process fails because the metadata contains URIs that reference internal Web site instances.&lt;/p&gt;  &lt;p&gt;To enable the hotfix after you installed it, you have to configure the WCF service to use the following service behavior:&lt;/p&gt;  &lt;p&gt;&amp;lt;serviceBehaviors&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;behavior name=&amp;quot;&amp;lt;name&amp;gt;&amp;quot;&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;useRequestHeadersForMetadataAddress&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;defaultPorts&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;add scheme=&amp;quot;http&amp;quot; port=&amp;quot;81&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;add scheme=&amp;quot;https&amp;quot; port=&amp;quot;444&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;/defaultPorts&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;/useRequestHeadersForMetadataAddress&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;/behavior&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;/serviceBehaviors&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Note &lt;/b&gt;&lt;i&gt;&amp;lt;name&amp;gt;&lt;/i&gt; is a placeholder that you should replace with the behavior name in your WCF service.    &lt;br /&gt;The hotfix causes WCF to generate the correct URI by using the &amp;quot;Host&amp;quot; HTTP header of the incoming metadata request. In this case, the &amp;quot;Host&amp;quot; header contains the load balancer address instead of the internal node address.    &lt;br /&gt;If a URI inside the WSDL document has a different scheme than the scheme of the &amp;quot;Host&amp;quot; header URI, for example, if a request for metadata comes over HTTPS but the metadata contains HTTP URIs, the hotfix will need the port number for that different scheme. The port number can be specified per scheme in the &amp;lt;defaultPorts&amp;gt; section.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8745848922175186593-2460941632687382908?l=ajitapi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajitapi.blogspot.com/feeds/2460941632687382908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajitapi.blogspot.com/2010/07/configuring-wcf-service-work-behind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/2460941632687382908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/2460941632687382908'/><link rel='alternate' type='text/html' href='http://ajitapi.blogspot.com/2010/07/configuring-wcf-service-work-behind.html' title='Configuring WCF service work behind Load Balancer'/><author><name>Ajit Singh</name><uri>http://www.blogger.com/profile/17889678799981918534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://photos1.blogger.com/blogger/5983/846/1600/AjitSingh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8745848922175186593.post-6057108761133634928</id><published>2009-10-29T04:49:00.001-07:00</published><updated>2009-10-29T04:50:29.750-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GoDaddy'/><title type='text'>Hosting WCF services in Partial Trust Environment of GoDaddy</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;When I tried to deploy my WCF web services in GoDaddy’s normal account, I got the below three errors:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;There is no build provider registered for the extension '.svc' error. &lt;/li&gt;&lt;li&gt;This collection already contains an address with scheme http error&lt;/li&gt;&lt;li&gt;WSHttpBinding would not work&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Below are the resolutions:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;1. There is no build provider registered for the extension '.svc' error.&lt;/b&gt; &lt;/p&gt;&lt;p&gt;Below error is thrown:&lt;/p&gt;&lt;p&gt;There is no build provider registered for the extension '.svc'. You can register one in the &amp;lt;compilation&amp;gt;&amp;lt;buildProviders&amp;gt; section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.&lt;/p&gt;&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;/p&gt;&lt;p&gt;Exception Details: System.Web.HttpException: There is no build provider registered for the extension '.svc'. You can register one in the &amp;lt;compilation&amp;gt;&amp;lt;buildProviders&amp;gt; section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_jwjzQG-ntts/SumA_gG4gtI/AAAAAAAACD4/QxJW6s9jE_s/s1600-h/clip_image002%5B5%5D.jpg"&gt;&lt;img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://lh5.ggpht.com/_jwjzQG-ntts/SumBBNE315I/AAAAAAAACD8/1jtTTPbb5jM/clip_image002_thumb%5B2%5D.jpg?imgmax=800" width="514" height="267" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;In the web.Config, make the below changes under &amp;lt;System.web&amp;gt; element:&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_jwjzQG-ntts/SumBCTlhSVI/AAAAAAAACEA/Yjd5KkX5GAM/s1600-h/clip_image004%5B5%5D.jpg"&gt;&lt;img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://lh6.ggpht.com/_jwjzQG-ntts/SumBDovKAHI/AAAAAAAACEE/7n8lgpgWVTw/clip_image004_thumb%5B2%5D.jpg?imgmax=800" width="543" height="431" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;buildProviders&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;remove extension=".svc" /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/buildProviders&amp;gt;&lt;/p&gt;&lt;b&gt;2. This collection already contains an address with scheme http error&lt;/b&gt; &lt;p&gt;Below error is thrown:&lt;/p&gt;&lt;p&gt;This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.&lt;/p&gt;&lt;p&gt;Parameter name: item&lt;/p&gt;&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;/p&gt;&lt;p&gt;Exception Details: System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.&lt;/p&gt;&lt;p&gt;Parameter name: item&lt;/p&gt;&lt;p&gt;Resolution:&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_jwjzQG-ntts/SumBEtVITbI/AAAAAAAACEI/he56Ozb1IHw/s1600-h/clip_image006%5B4%5D.jpg"&gt;&lt;img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://lh6.ggpht.com/_jwjzQG-ntts/SumBFsA6xQI/AAAAAAAACEM/D_ErG7frV7M/clip_image006_thumb%5B1%5D.jpg?imgmax=800" width="504" height="253" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;serviceHostingEnvironment&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;baseAddressPrefixFilters&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;add prefix="http://api.ajitsingh.net/ajit2/" /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/baseAddressPrefixFilters&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/serviceHostingEnvironment&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;3. WSHttpBinding would not work&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Change the binding to basicHttpBinding&lt;/p&gt;&lt;p&gt;Below error is thrown:&lt;/p&gt;&lt;p&gt;The WSHttpBinding with name WSHttpBinding failed validation because it contains a BindingElement with type System.ServiceModel.Channels.SymmetricSecurityBindingElement which is not supported in partial trust. Consider disabling the message security and reliable session options, using BasicHttpBinding, or hosting your application in a full-trust environment.&lt;/p&gt;&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;/p&gt;&lt;p&gt;Exception Details: System.InvalidOperationException: The WSHttpBinding with name WSHttpBinding failed validation because it contains a BindingElement with type System.ServiceModel.Channels.SymmetricSecurityBindingElement which is not supported in partial trust. Consider disabling the message security and reliable session options, using BasicHttpBinding, or hosting your application in a full-trust environment.&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_jwjzQG-ntts/SumBG1GvJaI/AAAAAAAACEQ/BU51FSsuqaU/s1600-h/clip_image008%5B4%5D.jpg"&gt;&lt;img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://lh3.ggpht.com/_jwjzQG-ntts/SumBIcEwhrI/AAAAAAAACEU/6PS6Tk9zLX8/clip_image008_thumb%5B1%5D.jpg?imgmax=800" width="515" height="328" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Change the binding to basicHttpBinding&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_jwjzQG-ntts/SumBKEXfASI/AAAAAAAACEY/92xis3x4JT8/s1600-h/clip_image010%5B4%5D.jpg"&gt;&lt;img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://lh6.ggpht.com/_jwjzQG-ntts/SumBLbxThjI/AAAAAAAACEc/juGBJxHhb-M/clip_image010_thumb%5B1%5D.jpg?imgmax=800" width="628" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8745848922175186593-6057108761133634928?l=ajitapi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajitapi.blogspot.com/feeds/6057108761133634928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajitapi.blogspot.com/2009/10/hosting-wcf-services-in-partial-trust.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/6057108761133634928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/6057108761133634928'/><link rel='alternate' type='text/html' href='http://ajitapi.blogspot.com/2009/10/hosting-wcf-services-in-partial-trust.html' title='Hosting WCF services in Partial Trust Environment of GoDaddy'/><author><name>Ajit Singh</name><uri>http://www.blogger.com/profile/17889678799981918534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://photos1.blogger.com/blogger/5983/846/1600/AjitSingh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_jwjzQG-ntts/SumBBNE315I/AAAAAAAACD8/1jtTTPbb5jM/s72-c/clip_image002_thumb%5B2%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8745848922175186593.post-36637202893136302</id><published>2009-10-09T23:19:00.001-07:00</published><updated>2009-10-09T23:19:39.780-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='URLs'/><title type='text'>Web Services API resources</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Business&lt;/p&gt;  &lt;p&gt;&lt;a href="http://digitalcapitalism.com/2009/04/api-marketing/" target="_blank"&gt;API’s Are The New Marketing Platform&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8745848922175186593-36637202893136302?l=ajitapi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajitapi.blogspot.com/feeds/36637202893136302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajitapi.blogspot.com/2009/10/web-services-api-resources.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/36637202893136302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8745848922175186593/posts/default/36637202893136302'/><link rel='alternate' type='text/html' href='http://ajitapi.blogspot.com/2009/10/web-services-api-resources.html' title='Web Services API resources'/><author><name>Ajit Singh</name><uri>http://www.blogger.com/profile/17889678799981918534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://photos1.blogger.com/blogger/5983/846/1600/AjitSingh.jpg'/></author><thr:total>0</thr:total></entry></feed>
