ServiceSecurityContext cannot be null

Aug 26, 2010 at 6:27 PM

I get this when using in a ServiceWorkflow

I have an ImpersonatingReceiveScope containing a Receive Activity (called by the service)

I test it using the WCF Test client, it crashes as soon I enter in the Impersonatingreceive.

Is there a problem using this combinaison of elements ?

Thanks for help

CS

Aug 26, 2010 at 6:37 PM

You also need to use a binding that specifies Windows credentials (or a Federation binding to pass a SAML token with a UPN claim).  If you are using the default settings for the WCF Workflow Service Application project, then it is using BasicHttpBinding with no security.  Try using a binding like this:

      <basicHttpBinding>
        <binding name="WindowsCreds">
          <security mode="Message">
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
              establishSecurityContext="false" />
          </security>
        </binding>
      </basicHttpBinding>

 

Aug 26, 2010 at 6:47 PM

Thanks but:

For a message security mode I need some https or certificate which I don't want.

next

ClientCredentialType and negociateServiceCredentials are not allowed in Web.config ????

 

CS

Aug 26, 2010 at 7:05 PM

Whoops, sorry about that.  I meant WsHttpBinding.  :)  Here is the complete config:

  <system.serviceModel>
    
    <protocolMapping>
      <add scheme="http" binding="wsHttpBinding" bindingConfiguration="WindowsCreds" />
    </protocolMapping>
    
    <bindings>

      <wsHttpBinding>
        <binding name="WindowsCreds">
          <security mode="Message">
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
              establishSecurityContext="false" />
          </security>
        </binding>
      </wsHttpBinding>

    </bindings>
  </system.serviceModel>
  
Aug 26, 2010 at 7:23 PM

With this I get the expected error bad scheme, expected https ?

Concerning documentation, I tried to apply exactly what I understand inside but have no success: running W7 x64 vs2010 and my xaml looks like

<WorkflowService mc:Ignorable="sap" ConfigurationName="Service1" sap:VirtualizedContainerService.HintSize="1036,801" Name="Service1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:a="clr-namespace:ADNWFService;assembly=ADNWFService" xmlns:ac="clr-namespace:ADNWFService.CrmDiscoveryService;assembly=ADNWFService" xmlns:aca="clr-namespace:ADNWFService.CrmDiscoveryService.Activities;assembly=ADNWFService" xmlns:au="clr-namespace:ADNWFService.UtilitiesService;assembly=ADNWFService" xmlns:aua="clr-namespace:ADNWFService.UtilitiesService.Activities;assembly=ADNWFService" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:p1="http://schemas.microsoft.com/wf/2010/xaml/wfsecuritypack" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sd1="clr-namespace:System.Data;assembly=System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:ss="clr-namespace:System.ServiceModel;assembly=System.ServiceModel" xmlns:ss1="clr-namespace:System.ServiceModel;assembly=System.ServiceModel.Web" xmlns:ss2="clr-namespace:System.ServiceModel;assembly=System.ServiceModel.Activities" xmlns:ssa="clr-namespace:System.ServiceModel.Activities;assembly=System.ServiceModel.Activities" xmlns:ssx="clr-namespace:System.ServiceModel.XamlIntegration;assembly=System.ServiceModel" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:swsd="clr-namespace:System.Web.Services.Description;assembly=System.Web.Services" xmlns:sxs="clr-namespace:System.Xml.Serialization;assembly=System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:sxs1="clr-namespace:System.Xml.Serialization;assembly=System.Xml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <p:Flowchart sad:XamlDebuggerXmlReader.FileName="C:\CRM\CRM2010\ADNWFService\ADNWFService\CreateBulkEMails.xamlx" sap:VirtualizedContainerService.HintSize="1006,771" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
    <p:Flowchart.Variables>
      <p:Variable x:TypeArguments="CorrelationHandle" Name="bulkSendHandle" />
      <p:Variable x:TypeArguments="x:String" Name="strListId" />
      <p:Variable x:TypeArguments="x:String" Name="templateId" />
      <p:Variable x:TypeArguments="x:Int32" Name="createdCount" />
      <p:Variable x:TypeArguments="a:EmailParams" Default="[New EmailParams()]" Name="emailParams" />
      <p:Variable x:TypeArguments="sd:DataTable" Name="cacheTable" />
    </p:Flowchart.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">False</x:Boolean>
        <av:Point x:Key="ShapeLocation">190,12.5</av:Point>
        <av:Size x:Key="ShapeSize">60,75</av:Size>
        <av:PointCollection x:Key="ConnectorLocation">220,87.5 220,117.5 220,164.5</av:PointCollection>
        <x:Double x:Key="Width">992</x:Double>
        <x:Double x:Key="Height">735.07999999999993</x:Double>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <p:Flowchart.StartNode>
      <x:Reference>__ReferenceID1</x:Reference>
    </p:Flowchart.StartNode>
    <p:FlowStep x:Name="__ReferenceID1">
      <sap:WorkflowViewStateService.ViewState>
        <scg3:Dictionary x:TypeArguments="x:String, x:Object">
          <av:Point x:Key="ShapeLocation">120,164.5</av:Point>
          <av:Size x:Key="ShapeSize">200,51</av:Size>
        </scg3:Dictionary>
      </sap:WorkflowViewStateService.ViewState>
      <p1:ImpersonatingReceiveScope Request="{x:Reference __ReferenceID0}" sap:VirtualizedContainerService.HintSize="200,51">
        <p:Sequence sap:VirtualizedContainerService.HintSize="277,475">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <p:WriteLine sap:VirtualizedContainerService.HintSize="255,61" Text="[OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.ToString()]" />
          <aua:GetCacheTable EndpointConfigurationName="UtilitiesSoap" GetCacheTableResult="[cacheTable]" sap:VirtualizedContainerService.HintSize="255,22" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" ShowDetails="False" handshake="testhanshake" />
          <p:Assign sap:VirtualizedContainerService.HintSize="255,58">
            <p:Assign.To>
              <p:OutArgument x:TypeArguments="x:String">[emailParams.strListId]</p:OutArgument>
            </p:Assign.To>
            <p:Assign.Value>
              <p:InArgument x:TypeArguments="x:String">[cacheTable.TableName + " count=" + cacheTable.Rows.Count.ToString()]</p:InArgument>
            </p:Assign.Value>
          </p:Assign>
          <SendReply DisplayName="SendReplyToNewBulkRequest" sap:VirtualizedContainerService.HintSize="255,90">
            <SendReply.Request>
              <Receive x:Name="__ReferenceID0" CanCreateInstance="True" CorrelatesWith="[bulkSendHandle]" DisplayName="NewBulkRequest" sap:VirtualizedContainerService.HintSize="277,90" OperationName="GetListId" ServiceContractName="EmailParams">
                <Receive.CorrelationInitializers>
                  <RequestReplyCorrelationInitializer CorrelationHandle="[bulkSendHandle]" />
                </Receive.CorrelationInitializers>
                <ReceiveMessageContent DeclaredMessageType="x:String">
                  <p:OutArgument x:TypeArguments="x:String">[strListId]</p:OutArgument>
                </ReceiveMessageContent>
              </Receive>
            </SendReply.Request>
            <SendMessageContent DeclaredMessageType="x:String">
              <p:InArgument x:TypeArguments="x:String">["Fin"]</p:InArgument>
            </SendMessageContent>
          </SendReply>
        </p:Sequence>
      </p1:ImpersonatingReceiveScope>
    </p:FlowStep>
  </p:Flowchart>
</WorkflowService>

and web.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="ADNWFService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <protocolMapping>
      <add scheme="http" binding="wsHttpBinding" bindingConfiguration="WindowsCreds" />
    </protocolMapping>
      <bindings>
        <wsHttpBinding>
          <binding name="WindowsCreds">
            <security mode="Message">
              <message clientCredentialType="Windows" negotiateServiceCredential="true"
                establishSecurityContext="false" />
            </security>
          </binding>
        </wsHttpBinding>
        <basicHttpBinding>
        <binding name="UtilitiesSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
          receiveTimeout="00:20: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="Transport">
            <transport clientCredentialType="Windows" proxyCredentialType="Windows"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="CrmDiscoveryServiceSoap" 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:5052/Services/utilities.asmx"
        binding="basicHttpBinding" bindingConfiguration="UtilitiesSoap"
        contract="UtilitiesSoap" name="UtilitiesSoap" />
      <endpoint address="http://adnsrv01/mscrmservices/2007/AD/CrmDiscoveryService.asmx"
        binding="basicHttpBinding" bindingConfiguration="CrmDiscoveryServiceSoap"
        contract="CrmDiscoveryServiceSoap" name="CrmDiscoveryServiceSoap" behaviorConfiguration="clientWF" />
    </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="true"/>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <!-- the following behaviorConfiguration was added to the generated config -->
        <behavior name="clientWF">
          <clientCredentials type="Microsoft.Security.Activities.WorkflowClientCredentials, Microsoft.Security.Activities.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
  <applicationSettings>
    <ADNWFService.Properties.Settings>
      <setting name="ADNWFService_DiscoveryService_CrmDiscoveryService"
        serializeAs="String">
        <value>http://adnsrv01/mscrmservices/2007/AD/CrmDiscoveryService.asmx</value>
      </setting>
    </ADNWFService.Properties.Settings>
  </applicationSettings>
</configuration>

Aug 26, 2010 at 8:28 PM

The only thing that I can see off hand that might be problematic is OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.  Unless you wrap the entire thing in an OperationContextScope activity (also in the WF Security Pack), you can't guarantee OperationContext.Current is on the WF thread.  You can use Thread.CurrentPrincipal here instead.

How are you trying to invoke this?  Via the WCF Test Client from within Visual Studio?  The following simple example works for me (with a plain Http address, not Https).  Can you try it?

<WorkflowService mc:Ignorable="sap" ConfigurationName="Service1" sap:VirtualizedContainerService.HintSize="333,444" Name="Service1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://tempuri.org/" xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:p2="http://schemas.microsoft.com/wf/2010/xaml/wfsecuritypack" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:st="clr-namespace:System.Threading;assembly=System.Core" xmlns:st1="clr-namespace:System.Threading;assembly=System" xmlns:st2="clr-namespace:System.Text;assembly=mscorlib" xmlns:st3="clr-namespace:System.Threading;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <p1:Sequence DisplayName="Sequential Service" sap:VirtualizedContainerService.HintSize="303,414" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
    <p1:Sequence.Variables>
      <p1:Variable x:TypeArguments="CorrelationHandle" Name="handle" />
      <p1:Variable x:TypeArguments="x:Int32" Name="data" />
    </p1:Sequence.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <p2:ImpersonatingReceiveScope Request="{x:Reference __ReferenceID0}" sap:VirtualizedContainerService.HintSize="281,290">
      <SendReply DisplayName="SendResponse" sap:VirtualizedContainerService.HintSize="255,90">
        <SendReply.Request>
          <Receive x:Name="__ReferenceID0" CanCreateInstance="True" DisplayName="ReceiveRequest" sap:VirtualizedContainerService.HintSize="255,90" OperationName="GetData" ServiceContractName="p:IService">
            <Receive.CorrelationInitializers>
              <RequestReplyCorrelationInitializer CorrelationHandle="[handle]" />
            </Receive.CorrelationInitializers>
            <ReceiveParametersContent />
          </Receive>
        </SendReply.Request>
        <SendParametersContent>
          <p1:InArgument x:TypeArguments="x:String" x:Key="parameter1">[System.Threading.Thread.CurrentPrincipal.Identity.Name]</p1:InArgument>
        </SendParametersContent>
      </SendReply>
    </p2:ImpersonatingReceiveScope>
  </p1:Sequence>
</WorkflowService>

Config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>

      <protocolMapping>
        <add scheme="http" binding="wsHttpBinding" bindingConfiguration="WindowsCreds" />
      </protocolMapping>

      <bindings>

        <wsHttpBinding>
          <binding name="WindowsCreds">
            <security mode="Message">
              <message clientCredentialType="Windows" negotiateServiceCredential="true"
                establishSecurityContext="false" />
            </security>
          </binding>
        </wsHttpBinding>

      </bindings>
    
    <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>

Aug 26, 2010 at 8:52 PM

Very good, thank you, it runs.

From this point I will study the differences.

May be the error is due to something other than the Impersonate activity.

I was no knowing that a wssHttpBinding could run without https or certificate, I am a beginner with WCF....and WF.
I have read so may confusing things about the <security>, <transport> and <message> parameters that I was afraid changing them from the default generated values.
So when you take
<security mode="Message">
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
              establishSecurityContext="false" />
          </security>
does it means that the windows SID is propagated in the message body (I will search in generated xml) ?


Working with c# since its beginning I am a little disapointed by the necessary usage of VB to work with xaml, I will certainly revert to a non visual usage as soon as I understand better WF.

Thanks again.

CS

Aug 26, 2010 at 9:37 PM

I come back on this.

From your sample when I insert a call to a web service created by Add Service Reference I get an error.
To insert the Service call I just moved the Activity created by Visual Studio after a compiler pass.

The service is an old web service created with visual studio and working perfectly when called from IE.
The Site hosting this service require an authentified user using windows authentication.

In fact I am unable to call any web service from WF.

And I don't know how to trace this call.

CS

Aug 26, 2010 at 10:06 PM

I installed traces on the web site hosting the service and I get no beginrequest when trying to call from the workflow.µ
When I add the Service reference from VS, I get correct access with correct windows identity ????

Here is what VS generated in web config

   <client>
      <endpoint address="http://localhost:5052/Services/utilities.asmx"
        binding="basicHttpBinding" bindingConfiguration="UtilitiesSoap"
        contract="UtilitiesSoap" name="UtilitiesSoap"/>
    </client>
    <bindings>
      <basicHttpBinding>
        <binding name="UtilitiesSoap" 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>

I don't understand why what VS has generated for such a simple case is not working.
Could you see any reason fro the call not being sent ?

Thanks again for your help.

CS

Aug 26, 2010 at 10:11 PM

and the WCF Test Client result

The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at IService.GetData()
   at ServiceClient.GetData()

Aug 26, 2010 at 10:23 PM

Turning details on in web.config, I get this

There was no endpoint listening at http://localhost:5052/Services/utilities.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

but the service is ok when I uses the url from IE ?

CS

Aug 30, 2010 at 9:13 PM

My apologies for not getting back to this last week.  Is there any chance we can take this to the WF4 Forums?  http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/threads

Aug 31, 2010 at 12:55 PM

Hi,

 

I have started this thread

http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/5af88205-ac24-4adb-95f0-72eb3339490f

Thank you again.

CS