locked
Enterprise library with workflow foundation 4.0-throwing exception in starting service RRS feed

  • General discussion

  •  

    I want to use enterprise library validation with wf4.0. Below is my configuration.

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration> 
      <system.web>
        <compilation debug="true" targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
        <services>
          <service name="Service1" behaviorConfiguration="PublishMetadata">
            <endpoint address=""
            binding="basicHttpBinding" contract="ITestService" behaviorConfiguration="Validation"/>       
          </service>      
          </services>
    
        <behaviors>
          <endpointBehaviors>
            <behavior name="Validation">
              <validation enabled="true"/>
            </behavior>
          </endpointBehaviors>
    
          <serviceBehaviors>
            <behavior name="PublishMetadata">
              <serviceMetadata httpGetEnabled="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <extensions>
          <behaviorExtensions>
            <add name="validation"
                 type="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF.ValidationElement, Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
          </behaviorExtensions>
        </extensions>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    </configuration>
    

    It is throwing exception when i try to browse service in web browser. Exception :-

    Server Error in '/' Application.

    Value cannot be null. Parameter name: operation.SyncMethod Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: operation.SyncMethod

    • Changed type LeoTang Friday, June 1, 2012 11:51 AM
    Tuesday, May 22, 2012 11:23 AM

All replies

  • Hi,

    I suspect that Enterprise Library validation application block support integration with WCF Workflow service. It is more proper discussed at:

    http://entlib.codeplex.com/discussions

    Thursday, May 24, 2012 10:08 AM
  • Thanks Franconia,

    I tried but not able to find any relevant post there ..can you share the post...

    Friday, May 25, 2012 8:40 AM