PDA

View Full Version : WCF Server returns 500 - multiple bindings error


dgarcia182
10-30-2009, 12:43 PM
I just published a web site that uses WCF Services. It is having a problem creating the binding because there are multiple site bindings in IIS on the web application. You can see the error here:
http://virtualscie.web705.discountasp.net/service/district.svc

I think this is happening because both virtualscienceuniversity.com and virtualscie.web705.discountasp.net are bound to the application. Is there a way to get around this restriction of WCF? Or maybe some way on DASP to only use the temp one virtualscie.web705.discountasp.net as the binding for now? I think that will fix that issue. When I tested on my local server I had the same problem.

I tried accessing the remote administration through IIS7, but I don't see an option to edit the bindings. Which is odd because for me it is always on the right side under the "Actions" menu. From the remote IIS7, I don't see that menu on the right.

dgarcia182
10-30-2009, 01:05 PM
Found a fix!
http://www.webhost4life.com/HostingKB/KnowledgebaseArticle50088.aspx

<system.servicemodel>
<servicehostingenvironment>
<baseaddressprefixfilters>
<add prefix="http://www.MyDomainName.com">
</add>
</baseaddressprefixfilters>
</servicehostingenvironment>
</system.servicemodel>

mjp
10-30-2009, 04:47 PM
Glad you could find a fix.

bruce
10-30-2009, 05:11 PM
ha.. looks like this host copied this content from our forum

We made this post back in 2007

http://forum.discountasp.net/showthread.php?t=4162

and their KB is dated 12/24/2008 .. interesting time to put out a KB.

mjp
10-30-2009, 06:25 PM
The rat bastards!

I guess if you can't create you have to steal.