The license for Visual Studio has expired
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptom
There is a valid license but Bamboo advised that the license for Visual Studio has expired and the following error is received in the build log:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
30-Apr-2015 13:31:05 "G:\Program Files (x86)\Microsoft Visual Studio 12.0"
30-Apr-2015 13:31:05
30-Apr-2015 13:31:05 G:\bamboo-home\xml-data\build-dir\DT-ON-JOB1>call "G:\Program Files
(x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_ia64
30-Apr-2015 13:31:05 Error in script usage. The correct usage is:
30-Apr-2015 13:31:05 "G:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" [option]
30-Apr-2015 13:31:05 where [option] is: x86 | amd64 | arm | x86_amd64 | x86_arm | amd64_x86 | amd64_arm
30-Apr-2015 13:31:05
30-Apr-2015 13:31:05 For example:
30-Apr-2015 13:31:05 "G:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
30-Apr-2015 13:31:07
30-Apr-2015 13:31:07 Microsoft Visual Studio 2013 Version 12.0.21005.1.
30-Apr-2015 13:31:07 Copyright (C) Microsoft Corp. All rights reserved.
30-Apr-2015 13:31:07
30-Apr-2015 13:31:07 The license for Visual Studio has expired.
30-Apr-2015 13:31:07
30-Apr-2015 13:31:07 Class not registered.
Resolution
Visual Studio is expired the Account Settings dialog will open automatically for the license to be added. Otherwise, go to File > Account Settings and manually add the subscription key.
To make sure that the user that's being used to start Bamboo service is able to see the license, you have to log in with that user before adding the license to Visual Studio.
Was this helpful?