I have 3 versions of the same assembly in the GAC (Global Assembly Cache), but i physically need a specific version, when going into the framework folder i.e.
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\
the assembly located in the folder is the latest version.
Can i physically retrieve the first version that was added into the GAC...
I have a .NET assembly that (for reasons outside my control) must be in the GAC. However, the same assembly is used by another program, which has a its own copy of an older version of the same assembly. It must use its own copy and not whatever is in the GAC. Proper versioning is probably more hassle than it's worth in this case, for rea...
I've created a simple httpModule, registered it on GAC and added it to the global web.config.
I've made some changes to the module, updated the version and changed it also on the web.config.
What happens is that i keep getting the old version. I've restarted the computer, removed it from the GAC, deleted the consumer app .net temp file...
I have an app built against MVC Preview 3 (referencing local copies of the MVC assemblies) that I'm trying to modify/test on a machine with the ASP.NET MVC beta installed. I am not interesting in updating this app to run against MVC beta yet - I just need to make a few small changes.
It's failing with MissingMethodExceptions on RouteCo...
Hi
I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version.
Is this even possible?
TIA
...
Hi,
I have a folder containing several websites, all using the same assemblies in the GAC. Each website also contains some 'custom' assemblies of their own that refer to the common assemblies.
There is a web.config in this folder, defining common settings for the sites, including the assemblies to load in a <system.web>/<compilation>/<...
Hi,
Like the title says, how can I remove GAC assembly file using vbscript?
Any help will be appreciated,
Thanks,
John,
...
Hypothetical situation: let's say I have a 3rd party .net assembly being used in the ASP.Net web system that I'm working on that just kinda crashes every now and then. When it does so, all calls to it throw exceptions until the system is rebooted. This is, obviously, a little sub-optimal.
Is there a way to reboot just that assembly fr...
Hi all
I'm trying to add a publisher policy file to the gac as per this thread but I'm having problems when I try and add the file on my test server.
I get "A module specified in the manifest of assembly 'policy.3.0.assemblyname.dll' could not be found"
My policy file looks like this:
<configuration>
<runtime>
<assemblyBinding...
I have a .NET dll which needs to read it's config settings from it's config file. Usually, the config file is placed in the same directory as the DLL. But how do i read the config file if the DLL is GAC'ed, because I can put only the DLLs in the GAC, and not it's config files.
...
I am writing an application using the Microsoft enterprise library. I wrote a wrapper dll for that enterprise library dll. I want to use my wrapper in some windows form application.
The problem is that every time I want to use my wrapper I get an error in the compilation that says that a reference to the enterprise library dll is missing...
I started using a a library which I reference from the GAC during development. I want the dll included in the project bin directory when I promote it to the webserver. I also need my local and the server web.config to be different. Before I started using this library I really enjoyed using the publish website feature of VS. Now it just s...
There is very strange assembly reference problem and loading problem I experience with my Outlook addin. Here are the detail (a long story :) ):
I have an old Outlook addin, written and build using .Net 1.1. The addin is loaded using an unmanaged shim in its own application domain. It works OK, with .Net 2.0, even if 1.1 is not present ...
Hi there please help me i finish a little module from a reporting app, so im using externals .dlls i put in bin folder but when i deploy the app with click once, and install finish, i get that all externals dlls are missing for example Microsoft.SqlServer.Types version 10.0.0.0 is missing
is there a way to install automatically these as...
WSPBuilder
Version: 0.9.8.0830
Created by Carsten Keutmann
GPL License 2007
Install and deploying [MYDLL]
Unable to deploy solution
Inner exception(1): This solution contains one or more assemblies targeted for the global assembly cache. You should use a strong name for any assembly that will be in the global assembly cache.
...
How can I get the (physical) installed path of a DLL that is (may be) registered in GAC? This DLL is a control that may be hosted in things other than a .Net app (including IDEs other than VS...).
When I use System.Reflection.Assembly.GetExecutingAssembly().Location, it gives path of GAC folder in winnt\system32 - or in Design mode in V...
I have a very simple Setup project that copies three dlls into the GAC. That's all it has to do. It works fine in XP, but on a Vista machine, it errors out stating that it cannot write to the file and to check permissions. I'm sure this has to do with some impersonation nonsense in Vista, but I'm not sure how to address it.
Has anyone e...
I know that when creating a DLL and declaring items as "Shared" (Static in C#) that they are instantiated when first called, and then that object reference lives on as the single reference.
So declaring a shared string property once set can be called again to retreive the same value. And that thread safety is then a Major concern withi...
We currently have "gacutil /i $(TargetPath)" as an external tool in visual studio and it works fine for gac'n a single project.
I want to be able to select multiple projects and gac them so I put together a batch script to test.
set randomfile=%random%
echo %1 %2 %3 > %randomfile%
gacutil.exe /f /il %randomfile%
When I test it from...
This assembly is in the GAC: Microsoft.SqlServer.Management.RegisteredServers.dll
How can I add a reference to this assembly in Visual Studio?
I can view the file in c:\windows\assembly\
...