Hi @ismcagdas
We are using Asp.net Zero V 13.3.0 with.NET Core and Angular.
we have installed below NuGet package.
but getting this error after run application.
How can we solve this issue? Can you please check this issue as soon as possible, and can you help us integrate Elsa?
Note: - Only NuGet package. Install on the host project and execute the application without any modifications at startup.cs
41 Answer(s)
-
0
Hi cyber50.ae
Your project has reached us, after performing the normal installation on the server side, the node modules packages have been installed on the Angular side. When we run the project, the problem you mentioned in the screenshot below does not occur. Here, I will ask you to perform the package installation again after deleting the
node_modules
file and the package lock files. -
0
-
0
-
0
-
0
Hi cyber50.ae
Your project has reached us, after performing the normal installation on the server side, the node modules packages have been installed on the Angular side. When we run the project, the problem you mentioned in the screenshot below does not occur. Here, I will ask you to perform the package installation again after deleting the
node_modules
file and the package lock files.![Screenshot 2024-08-27 094805.png](/QA/files/81be4f87040ff5eab3003a14a4c4d
could you please check AspNet core Solution. because i get error
-
0
Hi
After removing the
SwaggerDocumentFilter
included underservices.AddSwaggerGen
, you need to add a new class as shown below.Create a static class named
SwaggerConfigExtensions.cs
using Microsoft.Extensions.DependencyInjection; using Swashbuckle.AspNetCore.SwaggerGen; namespace Intelly.Web.Swagger { public static class SwaggerConfigExtensions { public static void AddSwaggerRouteFilter(this SwaggerGenOptions options) { options.DocInclusionPredicate((docName, apiDesc) => { var routeTemplate = apiDesc.RelativePath; if (routeTemplate == "workflow-definitions") return false; else if (routeTemplate.Contains("workflow-definitions/import-files")) return false; else if (routeTemplate.Contains("workflow-instances")) return false; else if (routeTemplate.Contains("workflow-registry")) return false; else if (routeTemplate.Contains("workflows")) return false; else if (routeTemplate.Contains("v{apiVersion}")) return false; else if (routeTemplate.Contains("v{version}")) return false; return true; }); } } }
After creating this class, change the
DocInclusionPredicate
method that was added before like this:Before
// options.DocInclusionPredicate((docName, description) => true); //
After
// options.AddSwaggerRouteFilter(); //
After making these changes, you will be able to access the Swagger UI screen without any problems.
-
0
Hi
After removing the
SwaggerDocumentFilter
included underservices.AddSwaggerGen
, you need to add a new class as shown below.Create a static class named
SwaggerConfigExtensions.cs
using Microsoft.Extensions.DependencyInjection; using Swashbuckle.AspNetCore.SwaggerGen; namespace Intelly.Web.Swagger { public static class SwaggerConfigExtensions { public static void AddSwaggerRouteFilter(this SwaggerGenOptions options) { options.DocInclusionPredicate((docName, apiDesc) => { var routeTemplate = apiDesc.RelativePath; if (routeTemplate == "workflow-definitions") return false; else if (routeTemplate.Contains("workflow-definitions/import-files")) return false; else if (routeTemplate.Contains("workflow-instances")) return false; else if (routeTemplate.Contains("workflow-registry")) return false; else if (routeTemplate.Contains("workflows")) return false; else if (routeTemplate.Contains("v{apiVersion}")) return false; else if (routeTemplate.Contains("v{version}")) return false; return true; }); } } }
After creating this class, change the
DocInclusionPredicate
method that was added before like this:Before
// options.DocInclusionPredicate((docName, description) => true); //
After
// options.AddSwaggerRouteFilter(); //
After making these changes, you will be able to access the Swagger UI screen without any problems.
Thank you so much. but We want to make WorkFlowDefinitions to be multi-tenant.
-
0
-
0
Hi @oguzhanagir,
any update?
-
0
Hi,
Couldn't understand your request. As you can see, this table already contains
TenantId
field. -
0
Hi cyber50.ae
This ELSA issue (https://github.com/elsa-workflows/elsa-core/issues/2462) may help you
-
0
Hi,
Couldn't understand your request. As you can see, this table already contains
TenantId
field.I logged in as a tenant and created a workflow. The record has inserted into the WorkFlowDefinitions SQL table. but the Tenant ID was missing; no value was inserted for Tenant ID. How can I solve this issue?
-
0
Hi,
Couldn't understand your request. As you can see, this table already contains
TenantId
field.I logged in as a tenant and created a workflow. The record has inserted into the WorkFlowDefinitions SQL table. but the Tenant ID was missing; no value was inserted for Tenant ID. How can I solve this issue?
Hi @oguzhanagir , any update?
-
0
Hi
Here you can get the information of the logged in user from the session and make custom changes in the base service that adds to the WorkFlowDefinitions table.
The comments in this issue (https://github.com/elsa-workflows/elsa-core/issues/2462) will help you.
-
0
Hi
Here you can get the information of the logged in user from the session and make custom changes in the base service that adds to the WorkFlowDefinitions table.
The comments in this issue (https://github.com/elsa-workflows/elsa-core/issues/2462) will help you.
hi @oguzhanagir, not working our side, any other way.
-
0
Hi
We won't be able to assist with this matter. It would be more appropriate to communicate your request to the ELSA developers.
Thank you. Best regards