Installing to the GAC in Windows 2003 Server

  • Thread starter The Reverend Natural Light
  • Start date
T

The Reverend Natural Light

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
 
T

The Reverend Natural Light

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."
 
T

The Reverend Natural Light

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top