2024-05-15T08:38:05.4625328Z ##[section]Starting: Run DocFX to generate pdf document and static web site 2024-05-15T08:38:05.4633532Z ============================================================================== 2024-05-15T08:38:05.4633696Z Task : PowerShell 2024-05-15T08:38:05.4633763Z Description : Run a PowerShell script on Linux, macOS, or Windows 2024-05-15T08:38:05.4633946Z Version : 2.237.5 2024-05-15T08:38:05.4634010Z Author : Microsoft Corporation 2024-05-15T08:38:05.4634087Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell 2024-05-15T08:38:05.4634205Z ============================================================================== 2024-05-15T08:38:07.1174318Z Generating script. 2024-05-15T08:38:07.1699307Z ========================== Starting Command Output =========================== 2024-05-15T08:38:07.2131383Z ##[command]"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\azp-agent_2\_work\_temp\8df174c6-53e9-4e6c-9444-bba3b494d27c.ps1'" 2024-05-15T08:38:07.7581746Z Environment variables refreshed 2024-05-15T08:38:07.9907012Z 2.76.0+0f6435902a0c6d9769124d00532bba32c80740e0 2024-05-15T08:38:08.4174238Z Searching custom plugins in directory C:\Users\service-azp\.dotnet\tools\.store\docfx\2.76.0\docfx\2.76.0\tools\net8.0\any\... 2024-05-15T08:38:08.5799598Z Post processor ExtractSearchIndex loaded. 2024-05-15T08:38:08.6246351Z No files are found with glob pattern **/media/**,**/download_pdf/*.pdf, excluding **/obj/**,**/includes/**, under directory "C:\azp-agent_2\_work\3065\s\DocsSite-BCPLLocalizationNSeI_I\pl-pl" 2024-05-15T08:38:08.6469194Z 7 plug-in(s) loaded. 2024-05-15T08:38:09.2491256Z Building 4 file(s) in ConceptualDocumentProcessor(BuildConceptualDocument=>ValidateConceptualDocumentMetadata)... 2024-05-15T08:38:09.2495662Z Building 1 file(s) in TocDocumentProcessor(BuildTocDocument)... 2024-05-15T08:38:09.5653710Z Applying templates to 5 model(s)... 2024-05-15T08:38:09.7568348Z XRef map exported. 2024-05-15T08:38:09.7897974Z Extracting index data from 4 html files 2024-05-15T08:38:13.2540675Z Content\doc-pdf.pdf: 0% 2024-05-15T08:38:14.3154234Z InvalidOperationException: Failed to build PDF page []: 2024-05-15T08:38:14.3157176Z http://127.0.0.1:58412/Content/article1.html#header3-5 2024-05-15T08:38:14.3218757Z at void MoveNext() in PdfBuilder.cs:156 2024-05-15T08:38:14.3219939Z at void MoveNext() in PdfBuilder.cs:238 2024-05-15T08:38:14.3221650Z at void MoveNext() 2024-05-15T08:38:14.3223750Z at async Task CreatePdf(Func> printPdf, 2024-05-15T08:38:14.3229180Z Func> printHeaderFooter, ProgressTask task, 2024-05-15T08:38:14.3231031Z Uri outlineUrl, Outline outline, string outputPath, 2024-05-15T08:38:14.3235337Z Action> updatePageNumbers) in PdfBuilder.cs:235 2024-05-15T08:38:14.3238742Z at void MoveNext() in PdfBuilder.cs:105 2024-05-15T08:38:14.3239736Z at void MoveNext() 2024-05-15T08:38:14.3245829Z at void MoveNext() in PdfBuilder.cs:98 2024-05-15T08:38:14.3247563Z at void MoveNext() in Progress.cs:103 2024-05-15T08:38:14.3252847Z at void MoveNext() in Progress.cs:138 2024-05-15T08:38:14.3258019Z at async Task RunAsync(Func> func) in DefaultExclusivityMode.cs: 2024-05-15T08:38:14.3258978Z 40 2024-05-15T08:38:14.3262099Z at async Task StartAsync(Func> action) in 2024-05-15T08:38:14.3263666Z Progress.cs:121 2024-05-15T08:38:14.3268744Z at async Task StartAsync(Func action) in Progress.cs: 2024-05-15T08:38:14.3269139Z 101 2024-05-15T08:38:14.3277160Z at async Task CreatePdf(string outputFolder) in PdfBuilder.cs:96 2024-05-15T08:38:14.3280335Z at async Task CreatePdf(string outputFolder) in PdfBuilder.cs:114 2024-05-15T08:38:14.3286596Z at async Task CreatePdf(string outputFolder) in PdfBuilder.cs:114 2024-05-15T08:38:14.3290442Z at void b__0() in DefaultCommand.cs:53 2024-05-15T08:38:14.3298204Z at int Run(LogOptions options, Action run) in CommandHelper.cs:48 2024-05-15T08:38:14.3304592Z at int Execute(CommandContext context, Options options) in DefaultCommand.cs: 2024-05-15T08:38:14.3306136Z 31 2024-05-15T08:38:14.3309262Z at Task Execute(CommandContext context, CommandSettings settings) in 2024-05-15T08:38:14.3310678Z CommandOfT.cs:40 2024-05-15T08:38:14.3317329Z at Task Execute(CommandTree leaf, CommandTree tree, CommandContext 2024-05-15T08:38:14.3318742Z context, ITypeResolver resolver, IConfiguration configuration) in 2024-05-15T08:38:14.3321499Z CommandExecutor.cs:144 2024-05-15T08:38:14.3324782Z at async Task Execute(IConfiguration configuration, IEnumerable 2024-05-15T08:38:14.3326423Z args) in CommandExecutor.cs:83 2024-05-15T08:38:14.3334736Z at async Task RunAsync(IEnumerable args) in CommandApp.cs:84 2024-05-15T08:38:14.4612651Z An error occurred while generating static web site 2024-05-15T08:38:14.4613372Z At C:\azp-agent_2\_work\_temp\8df174c6-53e9-4e6c-9444-bba3b494d27c.ps1:19 char:3 2024-05-15T08:38:14.4613664Z + throw ("An error occurred while generating static web site") 2024-05-15T08:38:14.4617229Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2024-05-15T08:38:14.4621383Z + CategoryInfo : OperationStopped: (An error occurred w…ing static web site:String) [], RuntimeException 2024-05-15T08:38:14.4623416Z + FullyQualifiedErrorId : An error occurred while generating static web site 2024-05-15T08:38:14.5983928Z ##[error]PowerShell exited with code '1'. 2024-05-15T08:38:14.6370617Z ##[section]Finishing: Run DocFX to generate pdf document and static web site