gac

How do I add a modified dll to the Global Assembly Cache?

I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache? If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Than...

enumerating assemblies in GAC

How can I enumerate all available assemblies in GAC in C#? Actually I am facing an issue with a stupid code - the assembly called Telerik.Web.UI.dll is referred and used in project - this particular DLL is not present in BIN folder. And application is working fine on the server - but on my machine, obviously compiler is giving error. Ex...

WCF Client DLL Internet Delivery Problem

We are creating a WCF service with a companion client DLL (.Net) that we will be delivering to a user's GAC via a web page. The DLL knows how to communicate with and how to interface with the service, and will allow the web page to communicate with the WCF service via client-side Javascript calls. The user's machine will be executing the...

.NET assembly loading priorities

I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly is signed and deployed in the GAC. When I build the solution the DAL is compiled and the assembly placed in the bin folder of the main project. But when I run the application, it loads the GAC version instead of the local one. Why is this? I realized that because the...

How to prevent a .NET application to use an assembly from the GAC?

Can I configure a .NET application in a way (settings in Visual Studio) that it references a "local" assembly (not in GAC) instead of an assembly within the GAC, although both assemblies have the same name and the same version? ...

Installing a modified version of ASP.NET MVC

I have made a relatively simple change to the MVC 1.0 source code to correct a bug in the DropDownList HtmlHelper (discussed in another question). I was able to rebuild the MVC solution, ran all the tests, including the one I hadd added to show the bug I was fixing, and built a new DLL. But how do I use that? I tried moving the new MV...

GAC Comparison Tool for multiple servers?

Does anyone know of a tool that would allow me to generate a report of the assemblies installed to the .NET GAC on all the servers in my web farm? (30-40 servers) Or alternatively, does anyone have a pointer or a link on some way of accessing the information programmatically, via WMI, or remote registry query, or some other technology?...

Is Sharepoint local bin deployment possible?

I’ve inherited a SharePoint solution where all the projects have strong names and are deployed to the GAC. I find that its difficult working with projects that are signed, it slows down development, testing and makes debugging difficult. So, is it possible that SharePoint projects, WebParts, Codebehinds etc be deployed to the local b...

See if any application has a DLL from the GAC loaded

I'm trying to deploy new copies of my DLL to the GAC on remote servers, but I need to identify if any processes currently running have a loaded copy of the DLL I'm replacing - I'd like to restart them, or at least tell the user. For example, Biztalk seems to load the DLLs it needs the first time they're used, and then replacing them kee...

Add c++ dll in the GAC

I have a dll that i created using C++ and for a reason my dll should be placed in the GAC. for all other dll's created with managed code, i sign them and drop them in the GAC, how can i do the same with the c++ dll? Thanks for your quick help. ...

add assembly reference dialog

Is there a way to use visual studio's "add assembly reference dialog" (or something similar) in my own application? I need it for dynamic code generation and compilation. This is not simply an OpenFileDialog, since it additionally looks into the GAC and so on, so it will be very complicated to do it on my own, I think. If this is not p...

Can I always expect assemblies that are part of the .NET Framework itself reside in the GAC?

I'm mostly just curious about this. Do assemblies that would be considered "part" of the .NET Framework itself always exist in the GAC? ...

Strong name is must

Is it necessary to provide strong name to an assembly before putting it in GAC? ...

Changing windows workflow assemblies while running?

We’re about to deploy version 1.2 of a software project I was working on, up from version 1.1. As it stands right now, there are a few outstanding workflows that are still in progress that will break if we update the workflow and supporting assemblies to version 1.2 because the serialized workflows will be looking for version 1.1 of th...

Can't access the assembly that installed into the GAC

I am sorry if this is stupid questions, but i've spend two days on this, and can't get it to work. Here's what I did: Create a new class library project Added a simple method sayHi() that returns a string In the project properties checked "sign the assembly" and used a strong name key file Compiled the application and copied the DLL ...

Registering dll's in the GAC using Visual Studio Installer

I want to register/unregister my project's assemblies in the GAC using Visual Studio's Setup installer project. I am thinking of using a custom installer to utilise the Install() and Uninstall() methods to write commmandline (in code) commands via the gacutil.exe. Is there an easier way - or is this the way you would do this? Please k...

Using WiX to put an assembly into both the GAC and Install Path

I'm just starting to learn how to use WiX and I'm running into a snag. My package uses a third party library that requires some file to exist both in the GAC and the package installation directory. Using WiX, I can make files show up in the installation directory, or in the GAC, but not both. Is there any way to work around this? ...

.Net Assembly /dll Sharing and Deploying

hi guys, We have 3 software products which use the same .net dlls(code + legacy). All these use common functionality present across 3/4 dlls. i wanted to know how and where to deploy these dlls. And which is the most standard way of doing this. S1] Along with each product in its install dir -- probably easiest way to do. (but if any...

Using LoadControl in a SharePoint webpart

I'm building a SharePoint webpart that I'm trying to add to the DisplayForm.aspx page of a custom list in SharePoint. This webpart will be using the SharePoint object model to retrieve fields from my list items. I've accomplished the addition of the webpart by adding an <AllUsersWebPart> block in the <Form> block for the DispForm and I...

GAC and Assembly Versioning

hi guys, i have to deploy few assembly to GAC. I just had a few questions about (my) understanding of GAC. really confuses me. I want to know which versions to change assembly and file version. What are possible combinations in which GAC dll will be replaced by installing application. and basic management for GAC files. I will ex...