locked
Service not activated due to Exception RRS feed

  • Question

  • When I host my service , I get the following error

    The argument name is null or empty.
    Parameter name: name

    The Stack Trace is as follows:

    [ArgumentException: The argument name is null or empty.
    Parameter name: name]
       System.Activities.RuntimeArgument..ctor(String name, Type argumentType, ArgumentDirection direction, Boolean isRequired, Boolean isTracked, List`1 overloadGroupNames) +2254193
       System.ServiceModel.Activities.InternalReceiveMessage.OnGetArguments(IList`1 arguments) +225
       System.Activities.WorkflowElement.OnInternalGetArguments() +37
       System.Activities.WorkflowElement.InternalGetArguments(Boolean createEmptyBindings) +21
       System.Activities.WorkflowElement.CacheMetadata(DeclaredEnvironment declaredEnvironment, Boolean createEmptyBindings) +21
       System.Activities.ActivityUtilities.CallCallback(ProcessActivityCallback callback, WorkflowElement childActivity, WorkflowElement currentActivity, DeclaredEnvironment parentEnvironment, ProcessActivityTreeOptions options, ActivityDelegate delegateEnvironment, IdSpace idSpace) +59
       System.Activities.ActivityUtilities.ProcessPublicMembers(WorkflowElement activity, WorkflowElement& nextActivity, Queue`1& activitiesRemaining, ProcessActivityTreeOptions options, ProcessActivityCallback callback) +92
       System.Activities.ActivityUtilities.ProcessActivityTree(WorkflowElement activity, ProcessActivityTreeOptions options, ProcessActivityCallback callback) +127
       System.Activities.WorkflowElement.Open(DeclaredEnvironment hostEnvironment) +172
       System.Activities.WorkflowInstance.Initialize(WorkflowElement activity, IDictionary`2 inputs, SynchronizationContext syncContext, Guid instanceId, SymbolResolver symbolResolver) +180
       System.Activities.WorkflowInstance..ctor(WorkflowElement activity, IDictionary`2 inputs, SynchronizationContext syncContext) +70
       System.ServiceModel.Activities.WorkflowServiceImplementation.WalkActivityTree() +88
       System.ServiceModel.Activities.WorkflowServiceImplementation.GetContractDescriptions() +67
       System.ServiceModel.ServiceHostBase2.CreateDescription(IDictionary`2& implementedContracts) +144
       System.ServiceModel.Activities.WorkflowServiceHost.CreateDescription(IDictionary`2& implementedContracts) +50
       System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +154
       System.ServiceModel.ServiceHostBase2.InitializeDescription(Service serviceDefinition, UriSchemeKeyedCollection baseAddresses) +46
       System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory2.CreateWorkflowServiceHost(Service service, Uri[] baseAddresses) +61
       System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory2.CreateServiceHost(String constructorString, Uri[] baseAddresses) +572
       System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1105
       System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +559

    [ServiceActivationException: The service '/LoanProcessService.xamlx' cannot be activated due to an exception during compilation.  The exception message is: The argument name is null or empty.
    Parameter name: name.]
       System.Runtime.AsyncResult.End(IAsyncResult result) +629514
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +201
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext, Boolean ensureWFService) +229
       System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +534
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +102
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


    can anybody guide me on this
    Tuesday, October 13, 2009 7:07 AM

Answers

  • Hi Suchi,

    Based on a quick look, it's possible that you haven't specified a parameter name for one of the parameters in the Content property for the Receive activity.  Can you show me the xaml for the Receive activities in your workflow?

    -- Dave
    • Proposed as answer by edhickey Monday, October 19, 2009 5:47 PM
    • Marked as answer by Sneha Gupta Tuesday, November 3, 2009 5:43 AM
    Thursday, October 15, 2009 1:44 AM