Csc Unexpected Error Creating Debug Information File Access Is Denied
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta unexpected error creating debug information file the process cannot access the file Discuss the workings and policies of this site About Us Learn unexpected error creating debug information file c# more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack visual studio unexpected error creating debug information file Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Fatal Error Cs0042: Unexpected Error Creating Debug Information File
helping each other. Join them; it only takes a minute: Sign up Unexpected Error creating debug information file GG.PDB“--” up vote 22 down vote favorite 1 When I try to build my project, it returns the following error: Error 1 Unexpected error creating debug information file 'D:\Documents\Lance\Documents\School\Capstone\GG\GG\obj\Debug\GG.PDB' -- '' GG I've recently had the misfortune of having could not write lines to file obj debug access to the path is denied my PC restart on me, due to sudden power supply problems (maybe). This is while the project was building, before this problem started. When the PC came back online I've noticed that the changes I've made to the program prior to the sudden power down was not saved. And, it won't build anymore. c# .net visual-studio debugging share|improve this question edited Jul 31 '11 at 2:13 CharithJ 26.2k117393 asked Jul 31 '11 at 0:32 zack_falcon 99452657 4 Try cleaning the solution (under Build menu in VS) –Cameron Jul 31 '11 at 0:33 1 have you tried to do a clean build? –Daniel A. White Jul 31 '11 at 0:33 2 Are you using an version control system? May be any locking issue? –CharithJ Jul 31 '11 at 1:19 @ CharithJ, I'm not using any version control system (whatever that is, sorry, new guy). Just 'vanilla' Visual Studio 2005. @ Cameron, thanks! That worked. –zack_falcon Jul 31 '11 at 2:11 @Cameron, I forgot t
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn tfs build csc unexpected error creating debug information file more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Unexpected Error Writing Debug Information The Method Or Operation Is Not Implemented
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Csc Fatal Error Cs0042
helping each other. Join them; it only takes a minute: Sign up TFS: cannot build my app, CS0042: Unexpected error creating debug information file. Access is denied. up vote 5 down vote favorite I am trying to deploy http://stackoverflow.com/questions/6886790/unexpected-error-creating-debug-information-file-gg-pdb 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? tfs share|improve this question asked Dec 14 '11 at 17:08 Jyothi Srinivasa 2942718 It's possible you have a read-only version http://stackoverflow.com/questions/8508641/tfs-cannot-build-my-app-cs0042-unexpected-error-creating-debug-information-fi already in that location. Have you looked? –Nick Nieslanik Dec 14 '11 at 22:10 1 There is something going on with this. CSC creates pdb files. If the build completes successfully, they are left writable. But in some cases, probably build failures, they are left read-only. This causes future builds to fail b/c a read-only file exists at the target path. I think it's a bug of sorts because it renders the build process not ACID (because it's not isolated b/c it's not repeatable), but I can't narrow in on the problem further just yet. Extra lines of code would have to be added to the build to first clean up a possible previous failed run. –toddmo Feb 18 '13 at 19:32 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Delete the obj folder! It should work. share|improve this answer answered Jan 25 '15 at 4:33 Ayyappan 111 The obj folder seems to be included in TFS –Ayyappan Jan 25 '15 at 4:34 add a comment| up vote -1 down vote It is probably still checked into TFS. share|improve this answer answered Mar 19 '12 at 23:26 Darek 2,9811129 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and
dll(s) in the /obj/ folder of library components. The fix that I have at the moment is as follows: Shut down VS.NET Browse to http://weblogs.asp.net/ssmith/23755 the project in windows explorer Delete the /obj/ folder. Delete the project outputs (.dll and .pdb) from /bin (not sure this step is necessary) (can't hurt, might help) -- delete the project outputs from any other project /bin folders in the solution that is having issues. Restart VS.NET Rebuild Laugh the next time you hear that DLL Hell is unexpected error no more in .NET... Update: Just deleting /obj/ after closing VS.NET does it. Ambrose pointed me to prcview.exe and that demonstrated that it is in fact devenv.exe locking the file, so it's VS.NET's own fault, not Index Server or anything else that is to blame. Listening to: Disturbed - Remember 26 Comments Steven it's probably also the same problem unexpected error creating I had few days ago. Check Index Server, and see if it's running. If you don't need it turn off the services, otherwise add some exclusion directories, the .Net temporary folders for a starter Paschall - Tuesday, August 12, 2003 2:36:00 PM The problem can be caused by virtually anything which runs in the background and is triggered by file activity. Index server is one example, also anti-virus scanners tend to do the same. I get this occasionally in VB/C# but much more often with managed C++ projects. I'm not sure why... Addy Santo - Tuesday, August 12, 2003 3:09:00 PM For the record, I am using VS.NET 2003. The one that keeps getting locked is a C# project (class library) in a solution with 4 other VB projects (3 class libs and a web). I'm wondering if the IDE real-time compiling of VB's IDE is hitting the PDF/DLL from the C# project and not cleaning them up. Using prcview, it's clear that only that one project's file are being referenced from the My Docu