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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

The specified task executable "csc.exe" could not be run. Access is denied

Hi,

I'm trying to build a small .Net solution (17 projects) but the build is failing with

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.CSharp.targets(316,9): error MSB6003: The specified task executable "csc.exe" could not be run. Access is denied [Path to Web Project]

Standard libraries are building fine it's just the 4 web projects that are failing. 

Has anyone else seen this type of error before? I'm looking at creating my own custom image as it looks like the bamboo user on the elastic box doesn't have the correct permissions.

Thanks

 

2 answers

0 votes
rsperafico Atlassian Team Oct 15, 2015

Hello Warren

Thank you for your question.

Are you running Bamboo Cloud or Bamboo behind the firewall?

Are you running the build in the same box where Bamboo server is running? Or on a Remote agent? Or EC2 agent?

Are you running Bamboo as a Windows Service?

What is the full path to "csc.exe" in the box where the build is running?

Are you able top run the build manually by visiting the "Build Working Directory" in a Command Prompt run your MSBuild?

Kind regards,
Rafael P. Sperafico
Atlassian Support

Hi Rafael,

I'm using Bamboo Cloud with the standard elastic EC2 agents. I managed to fix the issue by adding the script below immediately after checking out the source code:

takeown /r /d y /f .
icacls . /t /grant Bamboo:F

It seems that the Bamboo user on the machine doesn't have the correct permissions on the build folder.

Regards,
Warren

 

 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

997 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you