gac

I have installed to with gacutil my mytext.dll assembly - but i cant access it or reference it in VB.nET

How to I reference my own .dll after i add it to the GAC? I successfully added my .dll to the GAC, have seen it in the list. However, when i try to reference in Visual Studios..... i am lost. Thanks Much ...

How to set C# library path for an application?

Hello, I have C# application that uses a dll. When I try to run the application, it can't find the dll, unless it is in the same directory or in GAC. I do not want to have it in the same directory and I do not want to install it to GAC. Is there any way how to tell the application where to look for the library? (For example if I want to ...

Copy DLL From Assembly For Deployment

Hi in .NET on my local machine I have a reference to a DLL on my local assembly folder. I was wondering how I can "package" this dll with the deployment of my website? When I deploy on the staging serer it is complaining that it does not have that dll. (It is not in the GAC of the staging server). Thank you. ...

GAC vs JIT

Is everything under the GAC precompiled (ngened)? If so, then all of .NET is precompiled, so it's not possible for the CLR to optimize them at runtime? Like if you use List in your application then CLR will not be able to optimize the List itself, but only how it's used in your app? Doesn't this defeat the purpose of JIT, to get lots of...

How to get stack trace information for logging in production when using the GAC

I would like to get stack trace (file name and line number) information for logging exceptions etc. in a production environment. The DLLs are installed in the GAC. Is there any way to do this? This article says about putting PDB files in the GAC: You can spot these easily because they will say you need to copy the debug symbols (.pd...

Using Powershell to Register a file in the Gac

Is there a simpe way to in powershell (I imagine using gacutil.exe) to read from a text document a path\assembly and register it in the GAC? So for example a .txt file that looks like: c:\test\myfile.dll c:\myfile2.dll d:\gac\gacthisfile.dll The powershell script would read that into a stream and then run gacutil on each of those assem...

Storing DLL's in A Central NON GAC Location

We are being presented with a unique, painful situation. Traditionally we have been using the GAC and Policy Files to control DLL versions for our .NET applications. However, we have a very unique situation and are running into major problems with this, as some of our applications do NOT respect the policy files. Most specifically the...

Problem adding GAC reference to VS2008 project

Okay, so this isn't strictly a programming question, but it is a programming-related question. I have a C# winforms project that I am trying to add a reference to the System.Messaging dll. However, when I add the reference (from the .net tab of the Add References dialog), it shows up with a yellow exclamation warning. Right-clicking o...

How does one register an assembly in GAC while installation of website?

Hi all. I'm working on a project that depends on third party controls. While opening website after installation, I've an error message regarding these controls, Could not load file or assembly. assembly_file_name. The system cannot find the file specified. web.config file, has an assembly tag for each dll. When I remove these t...

List all DLL's implementing a specific interface from the GAC

Aloha Given a plug-in architecture (C# / .NET 3.5) with the plug-ins stored in the GAC, how can I list/load all dll's that contain types that implement my specific interface? In other words, I'd like to investigate which plug-ins for my application are installed on a machine, by looking in the GAC. -Edoode ...

Updating a dll in the GAC that contains aspx pages for a Web application.

Forgive me coder for I have sinned. I put some code into a dll in the GAC, and now I am confused about how the GAC is really working with IIS. In our intranet environment I have several related web applications (about 10). Each application runs from a separate url, and potentially runs in its own app pool. For now all of the apps are...

.NET: with respect to AssemblyVersion, what defines binary compatibility?

What changes to a strong-named assembly necessitate a change in AssemblyVersionAttribute? Clearly, changing the public api in a way that could require a client to have to make a code change requires an increase in AssemblyVersion. But what about changes to the public API that don't require code changes in the client? For instance: the ...

C#: WCF Method not found after signing an assembly

I have a 3 projects in a solution like such: WCF Service: Hosts a couple of methods Class Library: Acts as a gateway to the WCF service by returning an instance of its Soap client WPF Application: Consumes the service methods via the referenced class library Everything was working perfectly...the application was accessing an instance...

Does the CLR ever release binding of an assembly from GAC

I have multiple services that is pulling an assembly from the GAC. When I install one of these services it is updating the GAC with a new assembly that is shared by various services, and inserts a new policy file into the GAC so that all previous versions look for the new assembly. All the services pick up on the policy without restart...

Who should install a shared .NET library to the GAC? The framework that provides the library? Each application that uses it? Both?

This is more of a philosophical question, perhaps. Let's say I have a framework of some sort and I decide to provide a .NET library that makes the use of certain aspects of the framework easier. I don't want each application that uses the framework to carry a copy of the library locally, so I want it in the GAC (even with all the mainte...

Can not find System.Windows Assembly.

This is the error we get: Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests We get this error in our unit ...

How to get .NET to look for assemblies in local folders first instead of GAC?

It is my understanding that .NET runtime will always look for referenced assemblies in GAC first and then in the local folders. Is there a setting in Web.Config that would invert this order? ...

ASP.NET MVC: Bin Deploying V1 and Beta on same server

Hello, I have ASP.NET MVC Beta on our web server running a few apps. My latest app is getting close to done and it uses the Version 1 of ASP.NET MVC. My idea was I could bin deploy the V1 assemblies and leave Beta installed so it was used by default. This idea doesn't work as it ignores the bin folder and grabs from the GAC (both are...

Do I need to secure my strong name key file for an open-source project?

I'm creating a starter kit that installs the compiled assemblies from an open-source project into the GAC to make it easier to reference the assemblies in the template. Since they're going in the GAC, they need to be signed. Do I need to password protect and secure the key file, or is it okay to leave it open and include the file in sou...

FxCop and GAC Madness

Using FxCop when I try to analyze projects that rely on Patterns and Practices, Enterprise Library Data (among others) 2.0.0.0 - FxCop complains that it can’t: “Locate Assembly Reference” - even though the application dll being analyzed was complied against this version and its in the GAC. If I browse to the GAC try to select the same as...