WorkFlowActions.xamlx keep giving Keyword not supported: 'metadata'.

Khalid Salameh 1 Reputation point
2021-11-24T14:51:03.517+00:00

Hi all,
I'm working with Sequential WindowsWorkFlow.xamlx, once I want to run the Workflow, it's keep giving error "Keyword not supported: 'metadata'."

152292-2021-11-24-16-48-34.png

I checked the connection string and it is as below:

<add name="MyEntities" connectionString="metadata=res://*/ENT.csdl|res://*/ENT.ssdl|res://*/ENT.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=****;initial catalog=****;user id=***;password=****;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />  


 

Please help...

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,970 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,100 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Michael Taylor 55,376 Reputation points
    2021-11-24T15:28:01.92+00:00

    The connection string you posted is tied to using Entity Framework's EDMX designers. If you aren't using that then this connection string won't work. Please post the relevant code that is trying to load the connection string.


  2. Khalid Salameh 1 Reputation point
    2021-11-28T14:04:11.707+00:00

    I tried this also:
    osql -S <server_name> -U sa -P <password> -d <database_name> -i C:\Windows\Microsoft.NET\Framework\v4.0.30319\SQL\en\SQLWorkflowInstanceStoreSchema.sql

    still given "Login failed for user 'sa' "

    0 comments No comments

  3. leo del ciello 66 Reputation points
    2022-04-19T07:26:01.877+00:00

    I guess you should have an entry in the <services> section of your web.config too, something like :

       <service name="ManageWorkFlowActions">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="pdp_basicHttpBinding" contract="IManageWorkFlowActions" />
      </service>
    

    where "IManageWorkFlowActions" is a placeholder for the name of the Interface implementing your service.

    If you used the right workflow template to develop your application this entry should have been inserted automatically in your web. config ....

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.