-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] IFormFile in c# scripting #5397
Comments
Based on the error message "error CS0234: namespace 'AspNetCore' doesn't exist inside 'Microsoft'...", it seems like there might be a missing reference to the To resolve this issue, you should ensure that your project references the appropriate ASP.NET Core libraries. If you are using .NET Core 3.1 or later, these libraries are usually included by default. However, if they are missing or if you are using a different version of .NET, you may need to add the necessary package references manually. Here are some steps you can take to troubleshoot and resolve the issue:
If you are still facing issues after following these steps, you may want to seek further assistance on platforms like Stack Overflow or the official Elsa Workflows GitHub repository, where you can ask questions and get help from the community. This comment was generated by Glime. |
Description
seems ipossible to work with IFormFIle inside a c# scipting activity
Steps to Reproduce
##error
error CS0234: namespace 'AspNetCore' doesnt exisit insiede'Microsoft'...
##stack trace
at Microsoft.CodeAnalysis.Scripting.ScriptBuilder.ThrowIfAnyCompilationErrors(DiagnosticBag diagnostics, DiagnosticFormatter formatter)
at Microsoft.CodeAnalysis.Scripting.ScriptBuilder.CreateExecutor[T](ScriptCompiler compiler, Compilation compilation, Boolean emitDebugInformation, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Scripting.Script
1.GetExecutor(CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Scripting.Script
1.CommonGetExecutor(CancellationToken cancellationToken)at Microsoft.CodeAnalysis.Scripting.Script
1.TryGetPrecedingExecutors(Script lastExecutedScriptInChainOpt, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Scripting.Script
1.GetPrecedingExecutors(CancellationToken cancellationToken)at Microsoft.CodeAnalysis.Scripting.Script
1.RunAsync(Object globals, Func
2 catchException, CancellationToken cancellationToken)at Microsoft.CodeAnalysis.Scripting.Script
1.RunAsync(Object globals, CancellationToken cancellationToken) at Elsa.CSharp.Services.CSharpEvaluator.EvaluateAsync(String expression, Type returnType, ExpressionExecutionContext context, ExpressionEvaluatorOptions options, Func
2 configureScriptOptions, Func`2 configureScript, CancellationToken cancellationToken)at Elsa.CSharp.Extensions.CSharpEvaluatorExtensions.EvaluateAsync(ICSharpEvaluator evaluator, String expression, Type returnType, ExpressionExecutionContext context, ExpressionEvaluatorOptions options, CancellationToken cancellationToken)
at Elsa.CSharp.Activities.RunCSharp.ExecuteAsync(ActivityExecutionContext context)
at Elsa.Workflows.Activity.Elsa.Workflows.Contracts.IActivity.ExecuteAsync(ActivityExecutionContext context)
at Elsa.Workflows.Middleware.Activities.DefaultActivityInvokerMiddleware.ExecuteActivityAsync(ActivityExecutionContext context)
at Elsa.Workflows.Runtime.Middleware.Activities.BackgroundActivityInvokerMiddleware.ExecuteActivityAsync(ActivityExecutionContext context)
at Elsa.Workflows.Middleware.Activities.DefaultActivityInvokerMiddleware.InvokeAsync(ActivityExecutionContext context)
at Elsa.Workflows.Middleware.Activities.NotificationPublishingMiddleware.InvokeAsync(ActivityExecutionContext context)
at Elsa.Workflows.Middleware.Activities.ExecutionLogMiddleware.InvokeAsync(ActivityExecutionContext context)
file.json
The text was updated successfully, but these errors were encountered: