J
Jo Vermeulen
Hello,
I'm experiencing some trouble with the Global Assembly Cache (GAC). It
contains only assemblies of the .NET 1.0 framework (version 1.0.5000.0)
although I installed the .NET framework 1.1. I used gacutil.exe /i to
manually load the 1.1 assemblies in the GAC, but that does not seem to
work. The assemblies are not loaded into the GAC, although the output of
gacutil.exe /i tells me so. When I view all assemblies using gacutil.exe
/l, I only see the 1.0 ones. Same thing if I look into "C:\WINNT\assembly\".
I want to load the 1.1 assemblies in the GAC because I am experiencing
trouble with dynamic loading of assemblies. For instance, I load the
System.Windows.Forms.dll using information from the System.Environment
class. Apparantly this says I am using the .NET framework 1.1, so I
dynamically load version 1.1.4322. I also had to add references to
System.Windows.Forms, System.Drawing etc. to get the code to compile.
When I run it, Visual Studio starts loading the 1.0.5000.0 versions out
of the GAC.
This gives me extremely weird behaviour such as receiving an
InvalidCastException on this code (it's in C#):
Button swfObject = (Button)(Activator.CreateInstance(classType));
Where "classType" is a System.Windows.Forms.Button Type instance!
Any help would be greatly appreciated.
Kind regards,
I'm experiencing some trouble with the Global Assembly Cache (GAC). It
contains only assemblies of the .NET 1.0 framework (version 1.0.5000.0)
although I installed the .NET framework 1.1. I used gacutil.exe /i to
manually load the 1.1 assemblies in the GAC, but that does not seem to
work. The assemblies are not loaded into the GAC, although the output of
gacutil.exe /i tells me so. When I view all assemblies using gacutil.exe
/l, I only see the 1.0 ones. Same thing if I look into "C:\WINNT\assembly\".
I want to load the 1.1 assemblies in the GAC because I am experiencing
trouble with dynamic loading of assemblies. For instance, I load the
System.Windows.Forms.dll using information from the System.Environment
class. Apparantly this says I am using the .NET framework 1.1, so I
dynamically load version 1.1.4322. I also had to add references to
System.Windows.Forms, System.Drawing etc. to get the code to compile.
When I run it, Visual Studio starts loading the 1.0.5000.0 versions out
of the GAC.
This gives me extremely weird behaviour such as receiving an
InvalidCastException on this code (it's in C#):
Button swfObject = (Button)(Activator.CreateInstance(classType));
Where "classType" is a System.Windows.Forms.Button Type instance!
Any help would be greatly appreciated.
Kind regards,