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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Cannot get workflowcontext if using merged dll

(1) ShareShare
ReportReport
Posted on by
I have a workflow that just has simple logic so I can debug the problem. 
 public sealed class Testing : CodeActivity
    {
        
        protected override void Execute(CodeActivityContext context)
        {
            IWorkflowContext workflowContext = context.GetExtension<IWorkflowContext>();
            if (workflowContext == null)
            {
                throw new Exception(/workflowContext null/);
            }else
            {
                throw new Exception(/workflowContext not null/);
            }
        }
    }
If I install only this workflow, the result is /workflowContext not null/. But if I  use ILrepack.lib.MSbuild.Task package and package other dlls into one dll, then register the workflow use xrmltoolbox, I got //workflowContext  null/. I can open the merged dll and see all the dlls I want are in there. Any idea? thanks
Holly

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 91 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans