Fatal Error Cs0042 Unexpected Error Creating Debug Information File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have
Unexpected Error Creating Debug Information File Access Is Denied
Meta Discuss the workings and policies of this site About Us unexpected error creating debug information file the process cannot access the file Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Could Not Write Lines To File Obj Debug Access To The Path Is Denied
us Stack 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, tfs build csc unexpected error creating debug information file just like you, helping each other. Join them; it only takes a minute: Sign up Error Creating Debug Information - Code Won't Compile up vote 23 down vote favorite 2 I'm using VS 2008. When ever I make a change in my code and try to compile I get the following error: Error 7 Unexpected error csc fatal error cs0042 creating debug information file 'C:\Documents and Settings\jbezanson\My Documents\MyProjects\DispatchBoard\DispatchBoard\obj\Debug\DispatchBoard.PDB' -- 'C:\Documents and Settings\jbezanson\My Documents\MyProjects\DispatchBoard\DispatchBoard\obj\Debug\DispatchBoard.pdb: The process cannot access the file because it is being used by another process. ' DispatchBoard Using Process Explorer, it is always devenv.exe that is locking the file. If I run in Release mode this does not happen. It started 2 days ago when I started a WPF application, and since then it happens with every application I work on. The only info I could find from Google was referring to a bug in VS 2003. Anyone else have this problem? How do I fix it? It is getting very annoying having to kill the file handle every time I want to compile. c# visual-studio-2008 share|improve this question edited Sep 25 '09 at 14:30 Donut 54k992126 asked Sep 25 '09 at 14:21 modernzombie 83861738 add a comment| 19 Answers 19 active oldest votes up vote 9 down vote accepted When I have problems with locked files, I use Unlocker. (If you tried ever
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
.pdb The Process Cannot Access The File Because It Is Being Used By Another Process
the company Business Learn more about hiring developers or posting ads with us Stack debug being used by another process visual studio Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Unexpected Error Writing Debug Information -
4.7 million programmers, just like you, 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 http://stackoverflow.com/questions/1477582/error-creating-debug-information-code-wont-compile down vote favorite 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? tfs share|improve this question asked Dec 14 '11 at http://stackoverflow.com/questions/8508641/tfs-cannot-build-my-app-cs0042-unexpected-error-creating-debug-information-fi 17:08 Jyothi Srinivasa 2942718 It's possible you have a read-only version 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,9911129 add a comment|
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 the project in windows explorer Delete the /obj/ folder. Delete the project outputs (.dll and .pdb) from /bin (not http://weblogs.asp.net/ssmith/23755 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 https://bytes.com/topic/net/answers/117674-fatal-error-cs0042-unexpected-error-creating-debug-information-fi is 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 unexpected error or anything else that is to blame. Listening to: Disturbed - Remember 26 Comments Steven it's probably also the same problem 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 unexpected error creating 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 Documents/Visual Studio Projects/ProjectName/obj/ folder. The rest (the other dlls and pdbs being locked/referenced by devenv.exe) are going to the shadow copy under Application Data/. Thanks for the link to Process Explorer - I'll check it out. Steven Smith - Tuesday, August 12, 2003 10:15:00 PM I've made some good experience to switch from "Debug" to "Release" and back to solve this problem. But it isn't working all the time. Denis Bauer - Wednesday, August 13, 2003 8:10:00 AM Tried switching from Debug to Release, and it worked! Easier than shutting down, to be sure. Thanks for the tip, Denis! Steven Smith - Wednesday, August 13, 2003 3:18:00 PM I've had this problem to, tis VERY ann
+ Ask a Question Need help? Post your question and get tips & solutions from a community of 418,550 IT Pros & Developers. It's quick & easy. fatal error CS0042: Unexpected error creating debug information fi P: n/a Paulo Morgado [MVP] Hi all I keep getting this error while building a solution with more than 10 projects. The solution/projects are open only in one instance of Visual Studio 2003 and the application (Windows Forms) isn't runnig. How can I see what's loocking the files? -- Paulo Morgado MCAD.NET (charter member) MVP .NET (http://support.microsoft.com/default...=fh;pt;MVPdev2) Responda para os grupos de discussão para toda a comunidade partilhar Jul 21 '05 #1 Post Reply Share this Question 4 Replies P: n/a Daniel O'Connell [C# MVP] "Paulo Morgado [MVP]"