How to use FlashRemoting

Feb 10, 2011 at 1:24 PM

HI, sorry for my bad english.

It`s a sample WCF

//IServise1

using System.ServiceModel;

namespace WcfService2
{
 [ServiceContract] public interface IService1 { [OperationContract] string GetData (); } }

//Service1

namespace WcfService2
{
    public class Service1 : IService1
    {
        public string GetData ()
        {
            return "csdfsdcs";
        }
    }
}

//and web.config
<?xml version="1.0"?>
<configuration>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:23551/Service1.svc" binding="basicHttpBinding"
        bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"
        name="BasicHttpBinding_IService1" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

</configuration> 
I added WcfFlashRemoting.dll into bin folder.
how to insert code http://wcfflashremoting.codeplex.com/wikipage?title=Setup&referringTitle=Home in my project??? Help plizz

Coordinator
Feb 10, 2011 at 1:55 PM

It looks like the web.config you posted is for a WCF Client - WcfFlashRemoting is server-only at this time.  Are you sure this is the web.config for your web-project?

Feb 11, 2011 at 6:33 AM
it is?

<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service behaviorConfiguration="WcfService2.Service1" name="WcfService2.Service1"> <endpoint binding="wsHttpBinding" bindingConfiguration="wsHttpBind" contract="WcfService2.IService1" > <identity> <dns /> </identity> </endpoint> </service> </services> <behaviors> <serviceBehaviors> <behavior name="WcfService2.Service1"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <wsHttpBinding> <binding name="wsHttpBind"> <security mode="None"> <transport clientCredentialType="None" /> <message clientCredentialType="None" algorithmSuite="Default" /> </security> </binding> </wsHttpBinding> </bindings> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>