Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS: cannot build my app, CS0042: Unexpected error creating debug information file. Access is denied.

Tags:

tfs

I am trying to deploy my MVC app, but in the TFS build I get this error message;

CSC : fatal error CS0042: Unexpected error creating debug information file 'c:\Builds\2\STAS\STAS\Sources\Documents and Settings\jyothisrinivasa\My Documents\Visual Studio 2010\Projects\STAS\STAS\obj\Debug\STAS.PDB' -- 'c:\Builds\2\STAS\STAS\Sources\Documents and Settings\jyothisrinivasa\My Documents\Visual Studio 2010\Projects\STAS\STAS\obj\Debug\STAS.pdb: Access is denied.

I have excluded the Debug directory from my application, so why am I getting this?

like image 457
Jyothi Srinivasa Avatar asked Nov 14 '22 13:11

Jyothi Srinivasa


1 Answers

Delete the obj folder! It should work.

like image 176
Aypn Avatar answered Jan 01 '23 05:01

Aypn