Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I fix this Bamboo build error: error MSB4019: The imported project...?

Segun Ade August 18, 2012

The build error contains text below:

error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

11 answers

1 vote
Jason Feldheim August 27, 2014

How do you fix this when using Elastic instances?

David Bernick November 18, 2014

I'd also like an answer to this.

0 votes
Deleted user March 15, 2015

I have the same problem but only affecting my web service and web site projects.

Windows application projects are working without any issues.

 

I'm using bamboo elastic agents in the cloud - I was expecting the default AMI image for bamboo to have Visual Studio installed as so many arguments are stating bamboo supports .NET.

We're looking at moving from CC.net and TeamCity to Bamboo because of the integration with JIRA cloud (which we are already using)

 

Anyone has any ideas how this can be handled/workaround that does NOT involve setting up a custom EC2 image?

0 votes
Norbert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2015

I had the same Problem with a local Buildserver

The solution was to switch to the 32 bit version of MSBuild
don't now whats the problem, because on my local machine I can use the 64bit version of MSBUild, but on the server its not working

 

0 votes
mick1313 March 10, 2013

The problem is this fix is temporary. I am setting up an instance that shuts down and restarts when needed. But when it restarts it is a new instance.... I cannot keep copying the file everytime a check in starts a build on a brand new instance... any other thoughts on how to solve this error, that does not include a Remote Desktop to the EC2 instnace, copy a folder, then run a build... there must be a better way.

Boris Berenberg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2013

Hey Mickey,

It sounds like you need to modify the base AMI which you are using. If the AMI is built with the file missing, then this problem will reoccur every single time just as you mentioned.

Cheers,
Boris

0 votes
ArmenA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2013

It's great to hear that, Masoud. Thanks for sharing with the solution.

Armen

0 votes
mkeynejad February 6, 2013

Hi Armen,

I have fixed it.

The problem was that the path did not exist as the error message stating.

So I just remotely connected to the virtual machine and added the file in that location, it is worked.

Thanks

Masoud

0 votes
ArmenA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2013

Hi Masoud,

Do you have another agent (remote, local or elastic) that you can try to run the same build? Does it work on any other agent?

I need the Bamboo server logs, agent logs and a screenshot of your task configuraiton to be able to investigate the issue further. Feel free to open a support ticket and provide all the mentioned information.

Cheers,
Armen

0 votes
Segun Ade February 4, 2013

I have not gotten a working answer yet, will enter the answers when I do.

0 votes
mkeynejad January 30, 2013

Any answer yet for that question?

0 votes
ArmenA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2012

Hi Segun,

Thanks for your reply. Bamboo cannot find the file in the specified path. Can you please try to run the same project from the command line of your EC2 instance (from the same directory where Bamboo tries to run your project) using the same user that runs the elastic agent. If you get the same error running your project from command line (without Bamboo) then the problem is not really related to Bamboo. However, if it works fine from command line, then please open a ticekt on https://support.atlassian.com, attach screenshots of your build configuration, and we will continue to investigate this case.

Cheers,
Armen

0 votes
Boris Berenberg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2012

Hey Segun,

Does the user that Bamboo runs as have access to this directory? Does the file exist?

Cheers,
Boris Berenberg
Atlassian Support - San Francisco
Enjoyed the support?! Tweet us! #atlassiansupport

Segun Ade August 19, 2012

Hi Boris,

The directory is located in the Amazon EC2 that Bamboo OnDemand uses for build, I dont have access to it, i cant confirm or copy the file needed into the Amazon EC2 instance.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events