CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Issue with Hosting CSLA WCF in IIS 6.0

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 1 Follower

Not Ranked
2 Posts
faizmagic posted on Wed, Mar 21 2012 5:01 AM

Hi,

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="<http://tempuri.org/0>";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

Client:

 

 

 

 

<

 

 

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

Server

<system.serviceModel>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    <services>
      <service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
        <endpoint contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding" />
       
      </service>
      <!--<service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal">
        <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="basicHttpBinding_IWcfPortal">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>-->
    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBinding_IWcfPortal"
                 maxReceivedMessageSize="2147483647">
          <readerQuotas maxBytesPerRead="2147483647"
                        maxArrayLength="2147483647"
                        maxStringContentLength="2147483647"
                        maxDepth="1024"/>
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="returnFaults">
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
        <behavior name="WcfPortalBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

CSLA version used: 4.2.2.0

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

 

Regards

Faiz

All Replies

Top 10 Contributor
707 Posts

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

Not Ranked
2 Posts

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 ?.

Regards

Faiz

 

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems