Jyothi Srinivasa
Jyothi Srinivasa

Reputation: 701

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

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?

Upvotes: 6

Views: 6307

Answers (2)

Aypn
Aypn

Reputation: 349

Delete the obj folder! It should work.

Upvotes: 4

Darek
Darek

Reputation: 4797

It is probably still checked into TFS.

Upvotes: 0

Related Questions