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

[Unhandled Exception]: building wixproj 4.0.3 via Bamboo version 9.2.3 build 90202 - 22 Jun 23 #9537

Closed
austraclear opened this issue Dec 14, 2023 · 6 comments
Labels
bug closed-by-bot Closed due to lack of activity needs-more-info Issues that need more info to continue investigation. stale For issues that haven't had activity in some time. triaged

Comments

@austraclear
Copy link

austraclear commented Dec 14, 2023

Issue Description

attached the wix project being built
ServerSetupwixproj.txt

--BELOW is the error log---

build	14-Dec-2023 10:57:13	"C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj" (_IsProjectRestoreSupported target) (14) ->
build	14-Dec-2023 10:57:13	  MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :     Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Need warning message. [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.Logging.LoggingService.LogWarningFromText(BuildEventContext buildEventContext, String subcategoryResourceName, String warningCode, String helpKeyword, BuildEventFileInfo file, String message) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable`1 warnings) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.TryResolveSdkUsingSpecifiedResolvers(IList`1 resolvers, Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, SdkResult& sdkResult, IEnumerable`1& errors, IEnumerable`1& warnings) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.ResolveSdkUsingResolversWithPatternsFirst(Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, Boolean failOnUnresolvedSdk) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.ResolveSdk(Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, Boolean failOnUnresolvedSdk) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.CachingSdkResolverService.<>c__DisplayClass3_0.<ResolveSdk>b__2() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at System.Lazy`1.CreateValue() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at System.Lazy`1.LazyInitValue() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at System.Lazy`1.get_Value() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.CachingSdkResolverService.ResolveSdk(Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, Boolean failOnUnresolvedSdk) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.SdkResolution.MainNodeSdkResolverService.ResolveSdk(Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, Boolean failOnUnresolvedSdk) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, SdkResult& sdkResult) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.Evaluate() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, Project project, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, IDirectoryCacheFactory directoryCacheFactory, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.Execution.ProjectInstance.Initialize(ProjectRootElement xml, IDictionary`2 globalProperties, String explicitToolsVersion, String explicitSubToolsetVersion, Int32 visualStudioVersionFromSolution, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, Nullable`1 projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.BuildRequestConfiguration.<>c__DisplayClass61_0.<LoadProjectIntoConfiguration>b__0() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.BuildRequestConfiguration.InitializeProject(BuildParameters buildParameters, Func`1 loadProjectFromFile) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.BuildRequestConfiguration.LoadProjectIntoConfiguration(IBuildComponentHost componentHost, BuildRequestDataFlags buildRequestDataFlags, Int32 submissionId, Int32 nodeId) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.<BuildProject>d__68.MoveNext() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]
build	14-Dec-2023 10:57:13	MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.<BuildAndReport>d__59.MoveNext() [C:\BAMBOO_HOME23\xml-data\build-dir\EX-EXIGO0-JOB1\EXIGO\Server\Install\ServerSetup.wixproj]

Steps to Reproduce

running msbuild /t:Restore,Clean,Version,Build,Pack /p:Configuration="Release"

via bamboo

Actual Behavior

Bamboo build fails and spits out this error to be logged

Analysis

No response

Versions & Configurations

No response

@austraclear austraclear added bug needs-triage Have yet to determine what bucket this goes in. labels Dec 14, 2023
@KalleOlaviNiemitalo
Copy link

running msbuild /t:Restore,Clean,Version,Build,Pack /p:Configuration="Release"

I don't know whether this is related to the error, but you should not use the Restore target together with other targets. Instead use the /restore option or a wholly separate MSBuild invocation.

msbuild /restore:true /t:Clean,Version,Build,Pack /p:Configuration="Release"

@KalleOlaviNiemitalo
Copy link

The stack trace looks like an SDK resolver returned an SdkResult that contains an empty string as a warning. However, I don't see which SDK resolver did that.

Because your command runs msbuild rather than dotnet msbuild, I presume it is part of a Visual Studio installation and the SDK resolvers were installed with Visual Studio. Which version of Visual Studio are you using with Bamboo?

@austraclear

This comment was marked as off-topic.

@AR-May AR-May added triaged and removed needs-triage Have yet to determine what bucket this goes in. labels Apr 4, 2024
@rokonec
Copy link
Contributor

rokonec commented May 2, 2024

We have investigated the issue, and it appears that it is not a bug on our end. Most likely, Bamboo has a custom SDK resolver that incorrectly returns a null message. Unfortunately, we are unable to reproduce the issue locally. If you require further assistance with this matter, please provide the binlog. You can find more information about binlogs at aka.ms/binlog.

@rokonec rokonec added the needs-more-info Issues that need more info to continue investigation. label May 2, 2024
@dotnet-policy-service dotnet-policy-service bot added the stale For issues that haven't had activity in some time. label Jun 2, 2024
Copy link
Contributor

This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity.

@rokonec rokonec removed their assignment Jun 4, 2024
Copy link
Contributor

This issue was closed due to inactivity. If you can still reproduce this bug, please comment with the requested information, detailed steps to reproduce the problem, or any other notes that might help in the investigation.

@dotnet-policy-service dotnet-policy-service bot added the closed-by-bot Closed due to lack of activity label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug closed-by-bot Closed due to lack of activity needs-more-info Issues that need more info to continue investigation. stale For issues that haven't had activity in some time. triaged
Projects
None yet
Development

No branches or pull requests

4 participants