Gacutil Error Codes
Contents |
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 gacutil exited with code 3 Us Learn more about Stack Overflow the company Business Learn more about hiring gacutil exited with code 9009 developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the gacutil location 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 Error Code 1 when I install
The Command Exited With Code 9009
an assembly in GAC up vote 1 down vote favorite What is the error ? The command ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" /i D:\WDS\bin\Debug\WDS.dll /f" exited with code 1. I am using VS 2010 and I run this on my post build event. "$(FrameworkSDKDir)bin\gacutil.exe" /i $(TargetPath) /f I found in some forum that I have to quote the TargetPath like that "$(FrameworkSDKDir)bin\gacutil.exe" /i "$(TargetPath)" /f But the error regasm is still there. Can anybody help me ? c# .net assemblies gac share|improve this question edited Sep 9 '11 at 9:27 starblue 38.2k1063117 asked Sep 9 '11 at 2:18 kevin 3,522186183 3 No message from gacutil before that? Try typing the same command line in the Visual Studio Command Prompt window. It is the wrong version btw if you target .net 4. And UAC elevation required. And using the GAC on your dev machine should always be avoided. –Hans Passant Sep 9 '11 at 2:37 @Hans, Thanks for your reply. I did UAC elevation. Why we should avoid using GAC on our dev machine? Sorry about my ignorance !!! –kevin Sep 9 '11 at 2:47 The GAC is a deployment detail. What did typing the command explicitly tell you? –Hans Passant Sep 9 '11 at 2:51 When I delete this script in the post build event and build , it's ok. So I try to regenerate by putting the script there again. It does not show any error now. Thanks you Hans. Ghee, I don't know what's going on but it's running smoothly now. –kevin Sep 9 '11 at 3
360 games PC games visual studio command prompt Windows games Windows phone games Entertainment All Entertainment
Msb3073
Movies & TV Music Business & Education Business Students & educators
Excited
Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://stackoverflow.com/questions/7356502/error-code-1-when-i-install-an-assembly-in-gac Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/908268 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
solution Visual Studio Development > Visual Studio Diagnostics (Debugger, Profiler, IntelliTrace) Question 0 Sign in to vote Hi all, I hope I'm posting myproblemin the right forum.. Anyway, my so wiredproblem is with post-build-events in Visual Studio 2010 and OS 2008 R2 server. I just converted https://social.msdn.microsoft.com/Forums/vstudio/en-US/7b4eb1a4-e4c2-4f0c-ae1a-be20fca93280/gacutilexe-failed-in-post-build-event-when-building-all-solution?forum=vsdebug all our project from VS2005 to VS2010 with almost no effort (3 solutions with ~30 projects each). I also moved from OS 2003 to OS 2008 R2 server. All projects have post build event to run SN.exe and GACUtil.exe to add the https://channel9.msdn.com/Forums/TechOff/Error-MSB3073-exited-with-code-3 assemblies to GAC. Whenever I build the solution Iget errors on 3-5 projects related to the post build event script. The output of these errors is about adminisrative permission which is incorrect because the rest of the projects succeded registering to GAC. exited with here's the wierd thing: When I compile only the failed projects, they succeded and display no errors at all. When I try to buildallthe solution again, I get these error again... what is going on? why the GAC failed registering the assemblies when compiling all the solution and succeded when I compile them manually? I read some post that it might have to do with the indexing service but this service is not installed on my 2008 R2 machine. I need help. Thanks! Roy exited with code R.R Monday, August 22, 2011 7:10 AM Reply | Quote Answers 0 Sign in to vote As far as I know, on Windows Vista or later, to install assembly to GAC using GACUtil, you may need to run GACUtil.exe under administrator privilege; If it is a post-build event, you may right-click Visual Studio shortcut and select "run as administrator" to launch VS under admin permission, you can have a try. However, the question is out of support range of this forum, you may try Windows SDK or CLR forum for better support. Eric Yang [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no help. Marked as answer by eryang Monday, September 05, 2011 2:35 AM Tuesday, August 23, 2011 7:58 AM Reply | Quote All replies 0 Sign in to vote As far as I know, on Windows Vista or later, to install assembly to GAC using GACUtil, you may need to run GACUtil.exe under administrator privilege; If it is a post-build event, you may right-click Visual Studio shortcut and select "run as administrator" to launch VS under admin permission, you can have a try. However, the question is out of support range of this forum, you may try Windows SDK or CLR forum for better support. Eric Yang [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please
information from MSDN Visual Studio Achievements Latest Achievement: Loading Visual Studio Achievements Something went wrong getting the Visual Studio Achievements Follow us @ch9 Subscribe to Channel 9 Sign In Channel9 Browse Tags Shows Series Blogs Authors Events Topics Coding4Fun Windows Azure Visual Studio DevOps Microsoft Mechanics MVPs Forums Coffeehouse Site Feedback Tech Off Build Events WinHEC Visual Studio TechEd Build Microsoft Ignite Azure Speakers ForumsTechOff Error MSB3073 exited with code3 Subscribe Oops, something didn't work. Try again? Sign In to subscribe to this conversation What does this mean? Subscriptions allow us send you email notifications when new content is added. You need to be signed in to Channel 9 to use this feature. Getting subscription Unsubscribe to this conversation Subscribe to this conversation What does this mean? Subscriptions allow us send you email notifications when new content is added. Unsubscribing Subscribing Did you know you cansign up for email notifications? RSS reddit Tweet daEliteSniper Dec 07, 2011 at9:28AM I have converted a project from VC++ 6.0 to VC++ 2010, and these are the steps I went through when I compiled the project:Clean Solution Rebuild Solution or Build Solution (The 1st time) Here is the error I get when I follow those steps above:error MSB3073: The command "regsvr32 /s /c "C:\SourceControl\MyProject\.\Debug\MyProject.dll" echo regsvr32 exec. time > ".\Debug\regsvr32.trg" echo Execute mtxrereg.exe before using MTS components in MTS:VCEnd" exited with code 3.C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets1836However, immediately after getting that error where I do just a "Build Solution" ONLY I get Build succeededUnder Project > Properties > Configuration Properties > Custom Build Step I have Command Line:regsvr32 /s /c "$(TargetPath)" echo regsvr32 exec. time > "$(OutDir)regsvr32.trg" echo Execute mtxrereg.exe before using MTS components in MTSDoes anyone know