Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Executing gacutil in post-build event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mustang - 28 Jan 2008 16:29 GMT
I am currently working on a project using Visual Studio 2005 and I recently
upgraded my machine to Vista. One thing I am doing in this project is
building all dlls to a common bin folder and then GACing the dlls using the
gacutil command in the post build event. In Windows XP this workied fine, but
in Vista I get a build error, "gacutil...exited with code 1." My account that
I do development with is a member of the local administrators group, so I am
confused that the gacutil command would fail. Is there something else I need
to do to get the gacutil command to execute in the post build event in Visual
Studio?

Thanks in advance.
Signature

-mustang

Phil Wilson - 28 Jan 2008 22:45 GMT
Gacutil doesn't demand elevation (it runs asInvoker) so I think that your
Visual Studio build isn't running elevated (I doubt you run it as
administrator), therefore gacutil won't run elevated and can fail to add
assemblies to the GAC.

It doesn't matter if you an administrator - default behavior on Vista is to
run as a limited user.
Signature

Phil Wilson
[MVP Windows Installer]

>I am currently working on a project using Visual Studio 2005 and I recently
> upgraded my machine to Vista. One thing I am doing in this project is
[quoted text clipped - 13 lines]
>
> Thanks in advance.
mustang - 29 Jan 2008 14:33 GMT
I learned that disabling UAC allows gacutil to succeed, but so does UAC
enabled and running VS as adminstrator. I appreciate the help for this Vista
newbie.
Signature

-mustang

> Gacutil doesn't demand elevation (it runs asInvoker) so I think that your
> Visual Studio build isn't running elevated (I doubt you run it as
[quoted text clipped - 20 lines]
> >
> > Thanks in advance.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.