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 eShop failed with error: error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value') #517

Open
v-sherryfan opened this issue Aug 28, 2024 · 2 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 eShop repo from main branch [Aspire 8.1.0]
  2. Deploy using azd
    • Open the eShop\eShop.Web
    • 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:
Deploying services (azd deploy)

(x) Failed: Deploying service basket-api

ERROR: error executing step command 'deploy --all': failed deploying service 'basket-api': publishing container: dotnet publish on project 'C:\Users\V-SHER~1\eShop\src\Basket.API\Basket.API.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-11844_071c8d00615f4e6ea440c7344c35ef68.failure.txt:
MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 11844:
MSBUILD : error MSB4166: =====================
MSBUILD : error MSB4166: 8/28/2024 9:48:50 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.

@v-sherryfan
Copy link
Author

The workaround mentioned in another similar issue dotnet/aspire-samples#441 (comment) can also solve this problem.

@scharada
Copy link

The workaround mentioned in another similar issue dotnet/aspire-samples#441 (comment) can also solve this problem.

the suggested workaround did not work for me ...

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

3 participants
@scharada @v-sherryfan and others