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 / March 2006

Tip: Looking for answers? Try searching our database.

Installing to the GAC in Windows 2003 Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Reverend Natural Light - 06 Mar 2006 16:02 GMT
Greetings!

I'm trying to install a C# .NET application to a Windows 2003 server.
The MSI installer includes components that install to the GAC.  When it
gets to that point in the process, it fails with the error, "Error
writing to file: (my dll).  Verify that you have access to that
directory."  The specified file is the first of the dll's that install
to the GAC.

The user account has administrative rights.
The application was compiled on Windows XP, Visual Studio 2005.
Server is Win 2003, .NET 2.0 runtime installed.

This previously worked fine under .NET 1.1.  We just upgraded.

There doesn't seem to be an installutil included with the runtime so I
can't try it outside of the installer.

I've googled and found reports of this when attempting to install a
.NET 2.0 app under a .NET 1.1 runtime.  The server still has 1.1
installed (won't let me uninstall it) but I've put 2.0 on as well.

So, I'm stuck.  Any advice would be greatly appreciated.

-rev
The Reverend Natural Light - 06 Mar 2006 21:11 GMT
Update:  I added .NET 2.0 Runtime as a "prerequisite" in the install
project, rebuilt, and attempted to install.  Same problem.

"Error writing to file: (my dll).  Verify that you have access to that
directory."
The Reverend Natural Light - 08 Mar 2006 19:19 GMT
I'll answer my own question here:

1.  Install .NET 2.0 runtime and reboot.
2.  Install .NET 2.0 SDK and reboot.
3.  Install the first DLL in the GAC with gacutil at the command line.
4.  Install the application using the MSI.

No clue why that worked, but it did.

-rev

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.