web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerAutomateDesktoop,...
Power Automate
Unanswered

PowerAutomateDesktoop, when run Script C# , has load dll failed error.

(0) ShareShare
ReportReport
Posted on by 2

Could not load file or assembly 'XXX.resources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

why why ?  help help ......

I have the same question (0)
  • LokeshBysani Profile Picture
    229 Super User 2024 Season 1 on at

    @fanbaoyun Can you share the exact error message and also snap of your Run .NET Script action to see how it configured to provide clear instructions. 

     

    Thank you

  • fanbaoyun Profile Picture
    2 on at

    相关 ID: 2c20111f-00cf-4706-afac-e3aa19b4684f 引发类型为“Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Errors.DynamicOperationCompilationException”的异常。: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: 类型“Object”在未引用的程序集中定义。必须添加对程序集“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”的引用。 ---> Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Errors.DynamicOperationCompilationException: 引发类型为“Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Errors.DynamicOperationCompilationException”的异常。 在 Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Core.DynamicOperationController.EnsureNoErrors(IEnumerable`1 diagnostics, String code) 在 Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Core.DynamicOperationController.Initialize(DynamicScriptOperationParams p) 在 Microsoft.Flow.RPA.Desktop.Robin.DotNetEngine.Caching.OperationControllerCacheProxy.Initialize(DynamicScriptOperationParams p) 在 Microsoft.Flow.RPA.Desktop.Modules.System.Actions.RunDotNetScript.Execute(ActionContext context) --- 内部异常堆栈跟踪的结尾 --- 在 Microsoft.Flow.RPA.Desktop.Modules.System.Actions.RunDotNetScript.Execute(ActionContext context) 在 Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

     

    ----------------------------------------------

    Below code is my dll's code.     .net version is ".NET Stand 2.0".

    namespace NEDLRPA
    {
     public class Class1
     {
     public static bool test()
     { return true; }
     }
    }

    fanbaoyun_1-1692319526312.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard