Error Result 31 Returned From Mt Exe
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 more about hiring developers or posting ads with 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, just like you, helping each other. Join them; it only takes a minute: Sign up microsoft visual studio 2008 builds keep failing up vote 10 down vote favorite 2 My builds keep failing with the following error Project : error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'. I find that i have to kill some process called mspdbsrv.exe description:"microsoft program database" Then rebuild the entire project. This is annoying. Is there a permanent solution to this problem or is it stuck with me for good? PS OS: windows 7 ultimate msv studio 2008 + sp1 professional c++ visual-studio-2008 share|improve this question edited Mar 21 '10 at 13:23 Hans Passant 654k819601604 asked Mar 21 '10 at 12:00 Dr Deo 2,49932646 I encounter the same problem, except that I do not need to do a complete rebuild, just the link. So, for me it is not worthwhile to arrange to kill the process every time. –ravenspoint Oct 6 '10 at 21:00 1 I have tried to kill the process mspdbsrv.exe and then build or rebuild - but I still receive the same error. Any idea what can be done? –inbaly Sep 14 '14 at 7:17 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote accepted The problem is that for some reason, your mspdbsrv.exe is staying alive after the build. This is what's used to generate your .pdb files as part of the build. The only reliable solution seems to be to kill that process. What you can do is at least automate that, just add a post-build event and console kill it. I'd suggest using the SysInternals PSKill utility (free) like this in your post-build: pskill mspdbsrv.exe share|improve this answer answered Mar 21 '10 at 12:21 Nick Craver♦ 432k8410601011 very nice. Thanks :) –Dr Deo Mar 21 '10 at 12:48 1 It was indeed staying alive. Killed it. Then I got fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'. Rebooted. The original problem returned. Argh. –Camille
Development > Visual C++ Question 1 Sign in to vote Hi, I'm getting the following error message when I build my release version of the application "Project : error PRJ0002 : Error result 31 returned from 'c:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe" It never happenes when I build for debug version. Once on a blue moon, the build may be successul. I have uninstall and reinstall the VS 2005 and it does not help. My system is XP with service pack 2. Thank you, Stanley Friday, August 31, 2007 5:34 PM Reply | Quote Answers 0 Sign in to vote Hi Stanley, http://stackoverflow.com/questions/2486963/microsoft-visual-studio-2008-builds-keep-failing Which version of VS2005 are you using? It sounds like a bug in VS2005 beta 2 version, if you are using this version, try upgrade to final release version, for more information, see: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101838 hope it helps rico Thursday, September 06, 2007 12:58 PM Reply | Quote Moderator All replies 0 Sign in to vote Hi Stanley, Which version of VS2005 are you using? It sounds like a https://social.msdn.microsoft.com/Forums/vstudio/en-US/8ab65340-2002-49b5-86a2-185269560030/prj0002-error-result-31?forum=vcgeneral bug in VS2005 beta 2 version, if you are using this version, try upgrade to final release version, for more information, see: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101838 hope it helps rico Thursday, September 06, 2007 12:58 PM Reply | Quote Moderator 0 Sign in to vote I have VS2005 professional edition version 8.0.50727.42 (RTM.050727-4200). I read the above link, kill the "mspdbsrv.exe" process and rebuilt the release version - still getting the same problem. Ingestivation notes, 1. I have another XP machine and installed the same VS version (plus all other applications found on the trouble machine). Check-out the same project from version control and it builds fine. tested many-many times, no problem. 2. I have replace the "mt.exe" file from the windows SDK installation - same problem. (window SDK is installed on other machine, I just copy the "mt.exe" to the trouble machine) 3. Import the VS's registery key from the GOOD machine - still same problem. Once in a "Blue Moon", if i'm luck I can get the build successful. - I really do not want to re-install my OS, there is no garantee the problem will go away. Stanley, Thursday, September 06, 2007 1:56 PM Reply | Quote 0 Sign in to vote Hi I'm getting the same err
Forum Visual C++ & C++ Programming Managed C++ and C++/CLI error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud If this is your first visit, http://forums.codeguru.com/showthread.php?417954-error-PRJ0002-Error-result-31-returned-from-C-Program-Files-Microsoft-Visual-Stud be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, https://www.reddit.com/r/VisualStudio/comments/3mw0jc/visual_studio_2005_problem_error_prj0002_error/ select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud Tweet Thread Tools error result Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 16th, 2007,04:57 PM #1 nlayshot View Profile View Forum Posts Junior Member Join Date Feb 2007 Posts 9 error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud I keep getting the following error while compiling: error PRJ0002 : Error result 31 returned from error result 31 'C:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe'. If I rebuild the project several times it will eventually go away. I it really frustrating. Does anyone know what is causing this error? Nick Reply With Quote April 1st, 2007,05:07 AM #2 Sahir View Profile View Forum Posts Visit Homepage Senior Member Join Date Aug 2002 Location Dubai Posts 1,183 Re: error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud It could be a corrupted installation. Reinstalling VS 2005 should fix the problem. Also do download and install SP1. Reply With Quote August 19th, 2007,06:42 AM #3 yuvals View Profile View Forum Posts Junior Member Join Date Aug 2007 Posts 1 Re: error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud I've encountered the same problem. Installing SP1 didn't solve the problem. Any other solutions? Is it a known issue? Reply With Quote August 29th, 2007,03:46 PM #4 stan01 View Profile View Forum Posts Junior Member Join Date Aug 2007 Posts 1 Re: error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft Visual Stud I'm having this problem also, having problem building release version it is ok for the debug version. It seem this problem have something to d
»reddit.comVisualStudiocommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/VisualStudiouse the following search parameters to narrow your results:subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 29 Sep 20151 point (100% upvoted)shortlink: remember mereset passwordloginSubmit a new linkSubmit a new text postVisualStudiosubscribeunsubscribe828 readers~7 users here nowAnything VS related. Other subreddits: c# .NET XNA C++ C VB Channel 9 - Videos! created by [deleted]a community for 4 yearsmessage the moderatorsMODERATORSwhite_rob_about moderation team »discussions in /r/VisualStudio<>X3 points Cake!..