-
Notifications
You must be signed in to change notification settings - Fork 197
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
Comments
I've reproduced this with aspire shop sample. Found this ticket after getting same exception trying to deploy my own project.
|
Any updates on this? |
https://discord.com/channels/732297728826277939/759125320505884752/1278891265961889804 |
Thanks, this workaround is good for me too. |
updating the sdk did not solve the problem for me... |
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 |
Closed this as not repro on aspire-samples 9.0.0 |
INSTALL STEPS
REPRO STEPS
main
branch [Aspire 8.1.0]azd init
, select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter.azd up
to deploy to AzureACTUAL:
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.
Note
EXPECTED
Can be published successfully.
The text was updated successfully, but these errors were encountered: