Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebToolsE2E][Aspire] Deployment of AspireShop failed with error: error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value') #441

Closed
v-sherryfan opened this issue Aug 28, 2024 · 8 comments

Comments

@v-sherryfan
Copy link

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.11.2 [Include Aspire 8.1.0]
  3. Install Docker Desktop for Windows
  4. Install the latest released azd [1.9.6]

REPRO STEPS

  1. Clone aspire-samples repo from main branch [Aspire 8.1.0]
  2. Deploy using azd
    • Open the samples\AspireShop
    • solution folder in a Command Prompt
    • Running azd init, select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter.
    • Running azd up to deploy to Azure

ACTUAL:
ERROR: error executing step command 'deploy --all': failed deploying service 'catalogdbmanager': publishing container: dotnet publish on project 'C:\Users\V-SHER~1\source\repos\aspire-samples\samples\AspireShop\AspireShop.CatalogDbManager\AspireShop.CatalogDbManager.csproj' failed: exit code: 1, stdout: , stderr: MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\v-sherryfan\AppData\Local\Temp\MSBuildTemp" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
MSBUILD : error MSB4166: C:\Users\v-sherryfan\AppData\Local\Temp\MSBuildTemp\MSBuild_pid-22596_166cf785a8f54b07b6697a80d19216cd.failure.txt:
MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 22596:
MSBUILD : error MSB4166: =====================
MSBUILD : error MSB4166: 8/28/2024 9:36:01 AM
MSBUILD : error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value')
MSBUILD : error MSB4166: at System.ArgumentNullException.Throw(String paramName)
MSBUILD : error MSB4166: at System.IO.BinaryWriter.Write(String value)
MSBUILD : error MSB4166: at Microsoft.Build.Framework.TelemetryEventArgs.WriteToStream(BinaryWriter writer)
MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(ITranslator translator)
MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.Translate(ITranslator translator)
MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
MSBUILD : error MSB4166: ===================
MSBUILD : error MSB4166:
MSBUILD : error MSB4166:
Build failed. Properties, Items, and Target results cannot be obtained. See details in stderr above.
image

Note

  • If you manually update the Aspire version from 8.1 to 8.2, it will still repro.

EXPECTED

Can be published successfully.

@StevieJski
Copy link

StevieJski commented Aug 29, 2024

I've reproduced this with aspire shop sample. Found this ticket after getting same exception trying to deploy my own project.

ERROR: error executing step command 'deploy --all': failed deploying service 'ingestionservice': publishing container: dotnet publish on project 'C:\Dev\RiskViewService\LiveRiskFeedIngestionService\LiveRiskFeedIngestionService.csproj' failed: exit code: 1, stdout: , stderr: MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\<>\AppData\Local\Temp\MSBuildTemp\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
MSBUILD : error MSB4166: C:\Users\<>\AppData\Local\Temp\MSBuildTemp\MSBuild_pid-26332_ce2f9fddcdd04dd9b159add2291e8a43.failure.txt:
MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 26332:
MSBUILD : error MSB4166: =====================
MSBUILD : error MSB4166: 8/29/2024 2:58:25 PM
MSBUILD : error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value')
MSBUILD : error MSB4166:    at System.ArgumentNullException.Throw(String paramName)
MSBUILD : error MSB4166:    at System.IO.BinaryWriter.Write(String value)
MSBUILD : error MSB4166:    at Microsoft.Build.Framework.TelemetryEventArgs.WriteToStream(BinaryWriter writer)
MSBUILD : error MSB4166:    at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(ITranslator translator)
MSBUILD : error MSB4166:    at Microsoft.Build.Shared.LogMessagePacketBase.Translate(ITranslator translator)
MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
MSBUILD : error MSB4166: ===================
MSBUILD : error MSB4166:
MSBUILD : error MSB4166:
Build failed. Properties, Items, and Target results cannot be obtained. See details in stderr above.

@kraldev
Copy link

kraldev commented Aug 29, 2024

Any updates on this?

@StevieJski
Copy link

https://discord.com/channels/732297728826277939/759125320505884752/1278891265961889804
updating .net sdk from 8.0.400 to 8.0.401 solved this for me

@v-sherryfan
Copy link
Author

https://discord.com/channels/732297728826277939/759125320505884752/1278891265961889804 updating .net sdk from 8.0.400 to 8.0.401 solved this for me

Thanks, this workaround is good for me too.

@scharada
Copy link

updating the sdk did not solve the problem for me...

@scharada
Copy link

scharada commented Sep 5, 2024

updating SDK to 8.0.401 and Aspire to 8.2.0 solved the issue for me .

@Dayonel
Copy link

Dayonel commented Sep 19, 2024

updating SDK to 8.0.401 and Aspire to 8.2.0 solved the issue for me .

I can't thank you more. I confirm updating SDK to 8.0.401 was the only solution that worked. Thank you!!!

@v-sherryfan
Copy link
Author

Closed this as not repro on aspire-samples 9.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@scharada @Dayonel @kraldev @StevieJski @v-sherryfan and others