Help with Silverlight dataportal

Help with Silverlight dataportal

Old forum URL: forums.lhotka.net/forums/t/9980.aspx


JonM posted on Tuesday, January 25, 2011

I'm trying to get a silverlight 4 app running with a dataportal (CSLA 4.1).  Why is WCF always such a pain?!?  Anyway, I downloaded the samples but I can't find a good sample that shows a silverlight project talking through a dataportal.  I'm looking at the inventory demo but it has some extra compression junk in it! 

Can someone help me out with a sample web.config for my server (IIS 7) and a ServiceReferences.ClientConfig for my client?

Thanks

Gort replied on Tuesday, January 25, 2011

Jon-

What particular issues are you having?  I recently set this up myself so maybe can be of help.  I pass in the service endpoint to my SL application and set it programmatically, so I don't really have anything in my web.config other than the skeleton serviceModel code:

<system.serviceModel>
      <behaviors>
        <serviceBehaviors>
          <behavior name="">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="true" />
          </behavior>
        </serviceBehaviors>
      </behaviors>
      <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
    </system.serviceModel>

JonM replied on Tuesday, January 25, 2011

Gort,

Thanks for the help.  I'm not sure how this code does anything. What is the config on your silverlight client end?

Copyright (c) Marimer LLC