<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ed &#34;Over&#34; Ip &#187; ASP.NET</title>
	<atom:link href="http://www.edoverip.com/edoverip/index.php/tag/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edoverip.com/edoverip</link>
	<description>Frequently geeky, mostly dorky...</description>
	<lastBuildDate>Fri, 26 Mar 2010 15:38:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running WCF on GoDaddy</title>
		<link>http://www.edoverip.com/edoverip/index.php/2009/01/30/running-wcf-on-godaddy/</link>
		<comments>http://www.edoverip.com/edoverip/index.php/2009/01/30/running-wcf-on-godaddy/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 20:02:05 +0000</pubDate>
		<dc:creator>eip</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://www.edoverip.com/edoverip/?p=274</guid>
		<description><![CDATA[GoDaddy and many ASP.NET hosting company operate IIS under medium trust.  As such,  you will need to make a number of modifications to your app.config/web.config to make WCF work.  Assuming your WCF service is compiled against the 3.5 framework, the following is a list of errors I encountered along the way and the respective solution.
Error:
There [...]]]></description>
			<content:encoded><![CDATA[<p>GoDaddy and many ASP.NET hosting company operate IIS under medium trust.  As such,  you will need to make a number of modifications to your app.config/web.config to make WCF work.  Assuming your WCF service is compiled against the 3.5 framework, the following is a list of errors I encountered along the way and the respective solution.</p>
<p><strong>Error:</strong><br />
<strong><span style="color: #800000;">There is no build provider registered for the extension &#8216;.svc&#8217;. You can register one in the &lt;compilation&gt;&lt;buildProviders&gt; section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value &#8216;Web&#8217; or &#8216;All&#8217;.</span></strong></p>
<p><strong>Solution:</strong></p>
<pre style="padding-left: 30px; ">&lt;<span style="font-family: 'Courier New'; line-height: 18px; white-space: pre;">compilation</span><span style="font-family: 'Courier New'; line-height: 18px; white-space: pre;">&gt;
<strong>     &lt;</strong><strong>buildProviders</strong><strong>&gt;
<span style="font-weight: normal;"><strong>          &lt;</strong><strong>add</strong><strong> </strong><strong>extension</strong><strong>=</strong><strong>"</strong><strong>.svc</strong><strong>"</strong><strong> </strong><strong>type</strong><strong>=</strong><strong>"</strong><strong>System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</strong><strong>"</strong><strong>/&gt;
<span style="font-weight: normal;"><strong>     &lt;/</strong><strong>buildProviders</strong><strong>&gt;
</strong>&lt;/compilation&gt; </span></strong></span></strong></span></pre>
<p><strong>Error:</strong><br />
<strong><span style="color: #800000;">This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection. </span></strong></p>
<p><strong><span style="color: #000000;">Solution:<br />
</span></strong></p>
<pre style="padding-left: 30px; "><span style="color: #000000;">&lt;system.serviceModel&gt;
  ...
<span style="font-family: 'Courier New'; line-height: 18px; white-space: pre;"><span style="font-family: Georgia; line-height: 19px; white-space: normal;">      &lt;</span>serviceHostingEnvironment&gt;
      &lt;baseAddressPrefixFilters&gt;
           &lt;add prefix="http://services.edoverip.com/" /&gt;
      &lt;/baseAddressPrefixFilters&gt;
   &lt;/serviceHostingEnvironment&gt;
  ...
&lt;/system.serviceModel&gt; </span></span></pre>
<p><strong>Error:</strong><br />
<span style="color: #800000;"><strong>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. </strong></span></p>
<p><strong><span style="color: #000000;">Solution:<br />
<span style="font-weight: normal;"> This one is a bit tricky.  If you prefer to use wsHttpBinding, you will have to set the Security Mode to either None or Transport.  For example,  to set it to None, it looks something like this&#8230; </span></span></strong></p>
<pre style="padding-left: 30px;"><span style="color: #000000;">&lt;bindings&gt;
   &lt;wsHttpBinding&gt;
        &lt;binding name="<strong>wsHttp</strong>"&gt;
            &lt;security mode="None" /&gt;
        &lt;/binding&gt;
   &lt;/wsHttpBinding&gt;
&lt;/bindings&gt;</span></pre>
<pre style="padding-left: 30px;"><strong><span style="color: #000000;"><span style="font-weight: normal;">
&lt;services&gt;
     &lt;service behaviorConfiguration="DistanceWS.ServiceBehavior" name="DistanceWS.Service"&gt;
          &lt;endpoint binding="wsHttpBinding" bindingConfiguration="<strong>wsHttp</strong>" contract="DistanceWS.IService" /&gt;
          &lt;host&gt;
               &lt;baseAddresses&gt;
                    &lt;add baseAddress="http://localhost:8731/Design_Time_Addresses/DistanceWS/Service/" /&gt;
               &lt;/baseAddresses&gt;
          &lt;/host&gt;
     &lt;/service&gt;
&lt;/services&gt;</span>
</span></strong></pre>
<p>That&#8217;s all I can think of for now.  I will update this post if I come across anything else.  Meanwhile, enjoy and good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoverip.com/edoverip/index.php/2009/01/30/running-wcf-on-godaddy/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
