Error Code : CS0246 CS0103 CS1503 Issue: Compilation failure during the library compilation process in UiPath Studio. 2025.0.161

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • \PerformanceTestingBootloaderWorkflow.cs(12,31): error CS0246: The type or namespace name ‘CodedWorkflow’ could not be found (are you missing a using directive or an assembly reference?)
  • \PerformanceTestingBootloaderWorkflow.cs(18,17): error CS0103: The name ‘serviceContainer’ does not exist in the current context
  • \PerformanceTestingBootloaderWorkflow.cs(19,51): error CS1503: Argument 2: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’
  • .local\install\PerformanceTestingBootloaderWorkflow+BootloaderActivity.cs(48,44): error CS1503: Argument 1: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • \PerformanceTestingBootloaderWorkflow.cs(12,31): error CS0246: The type or namespace name ‘CodedWorkflow’ could not be found (are you missing a using directive or an assembly reference?)
  • \PerformanceTestingBootloaderWorkflow.cs(18,17): error CS0103: The name ‘serviceContainer’ does not exist in the current context
  • \PerformanceTestingBootloaderWorkflow.cs(19,51): error CS1503: Argument 2: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’
  • .local\install\PerformanceTestingBootloaderWorkflow+BootloaderActivity.cs(48,44): error CS1503: Argument 1: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • \PerformanceTestingBootloaderWorkflow.cs(12,31): error CS0246: The type or namespace name ‘CodedWorkflow’ could not be found (are you missing a using directive or an assembly reference?)
  • \PerformanceTestingBootloaderWorkflow.cs(18,17): error CS0103: The name ‘serviceContainer’ does not exist in the current context
  • \PerformanceTestingBootloaderWorkflow.cs(19,51): error CS1503: Argument 2: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’
  • .local\install\PerformanceTestingBootloaderWorkflow+BootloaderActivity.cs(48,44): error CS1503: Argument 1: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • \PerformanceTestingBootloaderWorkflow.cs(12,31): error CS0246: The type or namespace name ‘CodedWorkflow’ could not be found (are you missing a using directive or an assembly reference?)
  • \PerformanceTestingBootloaderWorkflow.cs(18,17): error CS0103: The name ‘serviceContainer’ does not exist in the current context
  • \PerformanceTestingBootloaderWorkflow.cs(19,51): error CS1503: Argument 2: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’
  • .local\install\PerformanceTestingBootloaderWorkflow+BootloaderActivity.cs(48,44): error CS1503: Argument 1: cannot convert from ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’

Errors Encountered:

  1. CS0246: The type or namespace name ‘CodedWorkflow’ could not be found. Likely missing a using directive or assembly reference.
  2. CS0103: The name ‘serviceContainer’ does not exist in the current context. Likely due to an undefined or uninitialized variable.
  3. CS1503: Type mismatch – unable to convert ‘CEF_Workflow_UiPath_TestAutomationProject_Tests.Bootloader’ to ‘UiPath.CodedWorkflows.CodedWorkflowBase’. Likely due to incorrect inheritance or missing dependency.

Steps Taken:

  • Verified dependencies and namespace imports.
  • Checked for missing or incorrect references.
  • Attempted project rebuild after cleaning.
  • Kept the package dependencies before the UiPath studio latest update.
  • I am not using the codedworflow.cs

Hi @boopathi.vadivel

Please refer these threads for your issue , hope it helps you

Thank you for your reply.
I tried to move the C# project folder outside the main project solution folder. Still I am facing the same issue.
FYI: I am using any codeworkflow.cs file in my project.

Kindly assist me in resolving the issue.

Hi All,
Still I am facing the issue, Anyone could address this issue.

Thank you!