Issue with Hosting CSLA WCF in IIS 6.0

Issue with Hosting CSLA WCF in IIS 6.0

Old forum URL:

faizmagic posted on Wednesday, March 21, 2012


I have been successfuly using CSLA.NET libraries to build one of my application. In my service i am using WSHttpBinding to communicate with the WCF Service,  when i host my WcfPortal Service iin IIS 6.0 and try to invoke the Fetch method from Data Portal i am getting the follwing exception.

The remote server returned an error: (415) Cannot process the message because the content type 'multipart/related; type="application/xop+xml";start="<>";boundary="uuid:77451d20-7af6-414c-bd3d-54ab50d958d7+id=4";start-info="text/xml"' was not the expected type 'text/xml; charset=utf-8'..

when i host the servie in IIS 7.0 it has no issue and work fine.

My config Settings









appSettings><add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/><add key ="CslaDataPortalUrl" value ="http://gb-eal-svv-0107/Automation.Solo.Service/WcfPortal.svc"/</appSettings>


    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      <service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
        <endpoint contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding" />
      <!--<service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal">
        <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="basicHttpBinding_IWcfPortal">
            <dns value="localhost"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <binding name="basicHttpBinding_IWcfPortal"
          <readerQuotas maxBytesPerRead="2147483647"
        <behavior name="returnFaults">
          <serviceDebug includeExceptionDetailInFaults="true" />
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        <behavior name="WcfPortalBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>

CSLA version used:

Let me know if i need to make any changes in IIS settings or web config. Any help is highly appreciated.




sergeyb replied on Wednesday, March 21, 2012

I think you need to install WCF on that box - under control panel, windows features

faizmagic replied on Wednesday, March 21, 2012

Are you talking about a standalone installation of WCF on IIS, i have installed .NET framework 4.0, VS 2010, silverlight, silverlight 4.0 tools and RIA services SDK v1.0 on the server, where i have hosted my WCf service.

do i need any specific installations apart from this to make it working.

or if i change from wsHttpBinding to basicHttpBinding, will it work ?.




Copyright (c) Marimer LLC