question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullReferenceException from PublishArtifactsInManifest in ASP.NET Core build

See original GitHub issue
  • This issue is blocking
  • This issue is causing unreasonable pain

The ASP.NET Core build at https://dev.azure.com/dnceng/internal/_build/results?buildId=1373561&view=logs&j=226748d0-f812-5437-d3f0-2dd291f5666e&t=bad11196-972e-5d03-45a8-9db526506073&l=51 failed with the following error:

2021-09-20T23:33:54.2609031Z D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\7.0.0-beta.21466.4\tools\SdkTasks\PublishArtifactsInManifest.proj(123,5): error : Object reference not set to an instance of an object.
2021-09-20T23:33:54.2709639Z ##[error].packages\microsoft.dotnet.arcade.sdk\7.0.0-beta.21466.4\tools\SdkTasks\PublishArtifactsInManifest.proj(123,5): error : Object reference not set to an instance of an object.
2021-09-20T23:33:54.2722187Z D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\7.0.0-beta.21466.4\tools\SdkTasks\PublishArtifactsInManifest.proj(123,5): error : Publishing symbols failed : 
2021-09-20T23:33:54.2727023Z ##[error].packages\microsoft.dotnet.arcade.sdk\7.0.0-beta.21466.4\tools\SdkTasks\PublishArtifactsInManifest.proj(123,5): error : Publishing symbols failed : 

This only happened once, so it seems to be an intermittent issue. There are binlogs at https://dev.azure.com/dnceng/internal/_build/results?buildId=1373689&view=artifacts&pathAsName=false&type=publishedArtifacts, in which I see the following:

image

So, it looks like the underlying issue is that the endpoint to which we’re trying to publish didn’t respond, or there was some other network issue.

Ideally, PublishArtifactsInManifest would report the underlying issue instead of throwing the NullReferenceException, so that we don’t risk blaming PublishArtifactsInManifest for this and can more directly get to the cause without going through binlogs.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
riarenascommented, Sep 27, 2021

I believe https://github.com/dotnet/arcade/pull/7964 is already out to fix this.

0reactions
mikem8361commented, Sep 27, 2021

We already have some fixes in PR (and approved) https://github.com/dotnet/arcade/pull/7964

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing ASP.Net Core Fails with NullReferenceException
I have built a relatively simple ASP.Net Core web application that uses Angular 2 & bootstrap for the front end and WebApi as...
Read more >
Why am I getting a null reference exception for ASP.NET ...
Because houseNo is null in this case, the value from the database is not retrun a value (null). When binding the model (@默...
Read more >
Object Reference Not Set to an Instance of an Object
This exception is thrown when you try to access a member—for instance, a method or a property—on a variable that currently holds a...
Read more >
Avoiding the NullReferenceException
So I'm going to walk through a trivial example of a ASP.NET Core application that is going to return some customer data. The...
Read more >
WebHostBuilderIISExtensions raises a null reference ...
It looks like Impact.OData references Microsoft.AspNetCore version 2.2.0 which is crossing the major version line.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found