none
Service Management Automation - Compilation Error RRS feed

  • Question

  • Hello,

    We are experiencing issue with Service Management Automation, we are triggering runbooks through REST API calls, occasionally we will get compilation error, which results in failed SMA Job, do you guys have some suggestion on how to fix this? 

    Build started 10.7.2019. 10:18:04. __________________________________________________ Project "C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\RuntimeProject.csproj" (default targets): Target PrepareForBuild: Creating directory "bin\Release\". Creating directory "obj\Release\". Target ResolveAssemblyReferences: Primary reference "orchestrator.activities". C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "orchestrator.activities". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. For SearchPath "{TargetFrameworkDirectory}". Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\orchestrator.activities.winmd", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\orchestrator.activities.dll", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\orchestrator.activities.exe", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\orchestrator.activities.winmd", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\orchestrator.activities.dll", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\orchestrator.activities.exe", but it didn't exist. For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}". Considered AssemblyFoldersEx locations. For SearchPath "{AssemblyFolders}". Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\orchestrator.activities.winmd", but it didn't exist. Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\orchestrator.activities.dll", but it didn't exist. Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\orchestrator.activities.exe", but it didn't exist. Considered "C:\Program Files\Microsoft SQL Server\120\SDK\Assemblies\orchestrator.activities.winmd", but it didn't exist. Considered "C:\Program Files\Microsoft SQL Server\120\SDK\Assemblies\orchestrator.activities.dll", but it didn't exist. Considered "C:\Program Files\Microsoft SQL Server\120\SDK\Assemblies\orchestrator.activities.exe", but it didn't exist. For SearchPath "{GAC}". Considered "orchestrator.activities", which was not found in the GAC. For SearchPath "{RawFileName}". Considered treating "orchestrator.activities" as a file name, but it didn't exist. For SearchPath "bin\Release\". Considered "bin\Release\orchestrator.activities.winmd", but it didn't exist. Considered "bin\Release\orchestrator.activities.dll", but it didn't exist. Considered "bin\Release\orchestrator.activities.exe", but it didn't exist. AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}" C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ReferenceAssemblies\v4.5\ C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies\ C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\ C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ReferenceAssemblies\v4.0\ C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Tasks C:\Program Files (x86)\Microsoft SQL Server\140\DTS\PipelineComponents\ C:\Program Files (x86)\Microsoft SQL Server\140\DTS\ForEachEnumerators C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Connections\ C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ReferenceAssemblies\v2.0\ C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\ C:\Program Files (x86)\Microsoft Chart Controls\Assemblies Done building target "ResolveAssemblyReferences" in project "RuntimeProject.csproj". Target XamlTemporaryAssemblyGeneration: __________________________________________________ Project "C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\RuntimeProject.csproj" is building "C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\htypcygl.tmp_proj" (CompileTemporaryAssembly target(s)): Target CoreCompile: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll" /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\microsoft.powershell.activities\v4.0_3.0.0.0__31bf3856ad364e35\microsoft.powershell.activities.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\microsoft.powershell.utility.activities\v4.0_3.0.0.0__31bf3856ad364e35\microsoft.powershell.utility.activities.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.PowerShell.Workflow.ServiceCore.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Activities.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.management.automation\v4.0_3.0.0.0__31bf3856ad364e35\system.management.automation.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Management.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.ServiceModel.Activities.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.ServiceModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xaml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll" /debug+ /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\Workflow_caf1a73bb0cb47b6886bc947a26f302f.dll /subsystemversion:6.00 /resource:obj\Release\5gygerli.qvo.g.xaml /resource:obj\Release\Microsoft.PowerShell.DynamicActivities_Activity_2009474931_Nested_BeforeInitializeComponentHelper.txt /target:library /utf8output obj\Release\_Workflow_caf1a73bb0cb47b6886bc947a26f302f.g.cs obj\Release\5gygerli.qvo.g.cs obj\Release\Microsoft.PowerShell.DynamicActivities_Activity_2009474931_Nested_BeforeInitializeComponentHelper.cs Target XamlMarkupCompilePass2: C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(136,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(152,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(168,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. Done building target "XamlMarkupCompilePass2" in project "RuntimeProject.csproj" -- FAILED. Done building project "RuntimeProject.csproj" -- FAILED. Build FAILED. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "orchestrator.activities". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(136,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(152,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. C:\Users\spf_s\AppData\Local\Temp\PSWorkflowCompilation\Workflow_caf1a73bb0cb47b6886bc947a26f302f\Project\5gygerli.qvo.xaml(168,14): error XC1027: Could not find type 'Orchestrator.Activities.GetAutomationPSCredential' in assembly 'Orchestrator.Activities'. 1 Warning(s) 3 Error(s) Time Elapsed 00:00:02.42

    Wednesday, July 10, 2019 11:27 AM

All replies