{"id":886,"date":"2014-08-28T17:41:04","date_gmt":"2014-08-29T00:41:04","guid":{"rendered":"http:\/\/somethingk.com\/main\/?p=886"},"modified":"2014-08-28T17:41:04","modified_gmt":"2014-08-29T00:41:04","slug":"iis-7-5-wcf-error-the-does-not-have-a-binding-with-the-none-messageversion","status":"publish","type":"post","link":"https:\/\/somethingk.com\/main\/iis-7-5-wcf-error-the-does-not-have-a-binding-with-the-none-messageversion\/","title":{"rendered":"IIS 7.5 WCF Error: The &#8230; does not have a Binding with the None MessageVersion."},"content":{"rendered":"<h3>Error<\/h3>\n<p>I received the following error while trying to run a\u00a0<a style=\"color: #f52887;\" title=\"Windows Communication Foudation\" href=\"http:\/\/en.wikipedia.org\/wiki\/Windows_Communication_Foundation\" target=\"_blank\">WCF<\/a>\u00a0application built in <a style=\"color: #f52887;\" title=\"Microsoft Visual Studio\" href=\"http:\/\/en.wikipedia.org\/wiki\/Microsoft_Visual_Studio\" target=\"_blank\">Visual Studio 2013<\/a>\u00a0running on a Windows 8\u00a0<a style=\"color: #f52887;\" title=\"Internet Information Services\" href=\"http:\/\/en.wikipedia.org\/wiki\/Internet_Information_Services\" target=\"_blank\">IIS 7.5<\/a>\u00a0server.<\/p>\n<p>The \u2026\u00a0does not have a Binding with the None MessageVersion. &#8216;System.ServiceModel.<wbr \/>Description.WebHttpBehavior&#8217; is only intended for use with WebHttpBinding or similar bindings.<\/p>\n<h3>Solution<\/h3>\n<p>With help from\u00a0<a style=\"color: #1155cc;\" href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/hh556232(v=vs.110).aspx\" target=\"_blank\">http:\/\/msdn.microsoft.com\/en-<wbr \/>us\/library\/hh556232(v=vs.110).<wbr \/>aspx<\/a>\u00a0and\u00a0<a style=\"color: #1155cc;\" href=\"http:\/\/stackoverflow.com\/questions\/7585363\/why-does-my-wcf-service-give-the-message-does-not-have-a-binding-with-the-none\" target=\"_blank\">http:\/\/stackoverflow.com\/<wbr \/>questions\/7585363\/why-does-my-<wbr \/>wcf-service-give-the-message-<wbr \/>does-not-have-a-binding-with-<wbr \/>the-none<\/a>, I edited my web.config file and added\/changed it to include the bolded text. Basically, I was confusing <a title=\"Simple Object Access Protocol\" href=\"http:\/\/en.wikipedia.org\/wiki\/SOAP\" target=\"_blank\">SOAP<\/a> and <a title=\"Representational State Transfer\" href=\"http:\/\/en.wikipedia.org\/wiki\/Representational_state_transfer\" target=\"_blank\">REST<\/a> calls. The below is utilized for REST only, SOAP requires the basicHttpBindings.<\/p>\n<p><code><br \/>\n&lt;system.serviceModel&gt;<br \/>\n&lt;services&gt;<br \/>\n&lt;service name=\"XOM.REIT.CNC.ClusterNotificationCenter\" behaviorConfiguration=\"DefaultBehavior\"&gt;<br \/>\n<strong>\u00a0 \u00a0 \u00a0 \u00a0 &lt;endpoint address=\"\" binding=\"webHttpBinding\" bindingConfiguration=\"secureHttpBinding\" contract=\"XOM.REIT.CNC.IClusterNotificationCenter\" behaviorConfiguration=\"DefaultEndpointBehavior\"\/&gt;<\/strong><br \/>\n&lt;endpoint address=\"mex\" binding=\"<strong>mexHttpsBinding<\/strong>\" contract=\"IMetadataExchange\" \/&gt;<br \/>\n&lt;host&gt;<br \/>\n&lt;baseAddresses&gt;<br \/>\n&lt;add baseAddress=\"<strong>https<\/strong>:\/\/localhost:30022\/\"\/&gt;<br \/>\n&lt;\/baseAddresses&gt;<br \/>\n&lt;\/host&gt;<br \/>\n&lt;\/service&gt;<br \/>\n&lt;\/services&gt;<br \/>\n<strong>&lt;bindings&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;webHttpBinding&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;binding name=\"secureHttpBinding\"&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;security mode=\"Transport\"&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;transport clientCredentialType=\"None\"\/&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/security&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/binding&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/webHttpBinding&gt;<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0 &lt;\/bindings&gt;<\/strong><br \/>\n&lt;behaviors&gt;<br \/>\n&lt;serviceBehaviors&gt;<br \/>\n&lt;behavior name=\"DefaultBehavior\"&gt;<br \/>\n<strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;serviceMetadata httpsGetEnabled=\"true\"\/&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;serviceDebug includeExceptionDetailInFaults=\"false\"\/&gt;<\/strong><br \/>\n&lt;\/behavior&gt;<br \/>\n&lt;\/serviceBehaviors&gt;<br \/>\n&lt;endpointBehaviors&gt;<br \/>\n&lt;behavior name=\"DefaultEndpointBehavior\"&gt;<br \/>\n&lt;webHttp \/&gt;<br \/>\n&lt;\/behavior&gt;<br \/>\n&lt;\/endpointBehaviors&gt;<br \/>\n&lt;\/behaviors&gt;<br \/>\n&lt;\/system.serviceModel&gt;<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error I received the following error while trying to run a\u00a0WCF\u00a0application built in Visual Studio 2013\u00a0running on a Windows 8\u00a0IIS 7.5\u00a0server. The \u2026\u00a0does not have a Binding with the None MessageVersion. &#8216;System.ServiceModel.Description.WebHttpBehavior&#8217; is only intended for use with WebHttpBinding or similar bindings. Solution With help from\u00a0http:\/\/msdn.microsoft.com\/en-us\/library\/hh556232(v=vs.110).aspx\u00a0and\u00a0http:\/\/stackoverflow.com\/questions\/7585363\/why-does-my-wcf-service-give-the-message-does-not-have-a-binding-with-the-none, I edited my web.config file and added\/changed it to include the bolded text. Basically, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,12],"tags":[293,294,258,292,296,295,243,283,285],"class_list":["post-886","post","type-post","status-publish","format-standard","hentry","category-development","category-windows","tag-7-5","tag-binding","tag-error","tag-iis","tag-messageversion","tag-none","tag-server","tag-wcf","tag-windows-8"],"_links":{"self":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/comments?post=886"}],"version-history":[{"count":6,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/886\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/886\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/media?parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/categories?post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/tags?post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}