assemblies

Load dll from gac using Assembly.Load from remote machine ?

How Load dll from gac using Assembly.Load from remote machine ? ...

.NET / C# - Reflection Help - Classes in an Assembly

What is the best way to loop through an assembly, and for each class in the assembly list out it's "SuperClass"? ...

put build date in about box

I have a C# WinForms app with an About box. I am putting the version number in the about box using: FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location) .FileVersion This ends up giving me the Subversion revision number from which the executable was built. I would also like to get the date of the build into th...

.Net Load Reference at runtime

I have following requirement, I have C#/.Net console application, which refers to 'System.Data.Sqlite.dll' 'System.Data.Sqlite.dll' is not registerd in GAC (i don't want to) I don't want to keep it in the directory where the Executable(.exe) is kept. How can i keep the 'System.Data.Sqlite.dll' file at some other directory , and load it...

Getting a directory's path, that is inside an assembly.

I have a custom asp.net control. That control will also render to the page a piece of javascript. This javascript piece of code is actually properties that have to be initialized. One of this property value must be a path. This path is a directory that is inside this assembly. If it is was a file i would use GetWebResourceUrl but now I d...

Referencing the same interface in different assemblies

Hi, I want to implement architecture involving different .NET assemblies (i.e. modules). Some of these modules should provide services which are used as .NET interfaces by other modules. The modules should be loaded and registered dynamically at runtime, I do not want to have "hardcoded" dependencies between them. Example: Module1.d...

How to use an embedded image of a separate assembly?

Hi, there are many related questions/answers about that in SO. I took a look to some of them but none really match. An assembly (called ResourcesLoader) holds images as embedded ressources. I would like to use these pictures in another assembly. After looking at msdn pack uri, and seeing a lots of samples, I thought that the followin...

Type.IsSubclassOf does not behave as expected

I have an application that loads assemblies and looks for types that are subclasses of a class C1 defined in another assembly A1 that the application references. I've defined a type T in A1 that is a subclass of C1 but when I load A1 using Assembly.Load(...) then call t.IsSubclassOf(typeof(C1)) on an instance of T I get false. I've notic...

Where are Web Application Project Assembly references stored?

Where are assembly refernces stored for a web application? In a Web Site, I see assembly tags written to the assembly node in the web.config when you add a reference. I am just curious as to how the Web Application Project makes the connection to get the correct local dll? I manually add the reference and the application builds, but ...

Adding .net dll dependencies to a project

Hello all, I'm creating .net websites against a CMS server using the API of the software vendor. The problem is that for every version of the CMS software I have different DLLs (mostly unversioned) that I have to deal with. So, right now I am building some reusable server components that depend on these DLLs, but since I want to use ...

Was it bad practice for an application to install a 3rd party assembly in the GAC without asking?

Scenario: We have a server where there are multiple ASP.NET websites hosted on it. A few days ago quite a few of these websites "broke" with the following error: Warning 44 Could not resolve this reference. Could not locate the assembly "AjaxControlToolkit, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, ...

loading managed resources from c# and passing it to Native CPP code as a stream handle

I have a file that I have embedded as a resource in a managed C# assembly. I would like to pass the pointer to that resource and its size to some native code so it can extract it for me if needed. Are there C# api's that give me the intptr of that embedded resource? ...

Assembly File Version not changing?

I have in my assemblyinfo.cs class the code: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.*")] Calling System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() works fine and gives the updated version, however, when i look at the generated dll in windows explorer, right click properti...

Howto load assemby at runtime before AssemblyResolve event?

Actually i tried to implement some kind of 'statically linked' assemblies, within my solution. So i tried the following: Adding a reference to my assembly with CopyLocal = false Adding the .dll file itself to my solution with 'Add as link' Adding the .dll file itself to my resources with 'Add Resource' - 'Add Existing File' Adding some...

Using Precompiled .NET Assembly DLL in Mono?

We're currently testing Mono to see if our .NET DLLs will work for customers on Linux. Our DLLs provide components for Windows Forms. I placed the DLLs in the Debug directory, added the references, and created a class deriving from a Windows Form. The class had run fine standalone, but after I added the DLL references and created one ...

referencing dotnetnuke.dll from another folder on asp.net

I have dotnetnuke portal on server in /root/dnn and I am creating asp.net app in c# VS2008 that I need to upload on /root/app. when I deploy my app, it needs to reference dotnetnuke.dll assembly from /root/dnn/bin instead of /root/app/bin. how can I manage that, without putting app files in /root/dnn? I tried to set auto-refresh path ...

Maven 2 Assembly plugin - how to split main artifacts and dependencies into separate folders

I am using Assembly plugin for maven to create an installation package. For my packaging requirement, I need to split artifacts generated during the build and all dependencies into separate folders. My current Assembly manifest is as follows: <moduleSets> <moduleSet> <includes> <include>test:test</include> </includes> ...

Workflow versioning issue

In our project, we use WF to run workflows. .net version 3.5. Hosted inside an IIS application pool. Apparently, we run into some versioning issues: We start a workflow with version 1 of our assemblies. After we get to a persistence point, we upgrade to version 2, we need to be able to let the old instances continue to run with the old ...

What happens in 'assembly purgatory'?

When a .NET assembly is deployed to the GAC and the destination file is locked, Windows holds it in what I can best guess is some sort of 'assembly purgatory' - c:\windows\assembly\temp. Using Process Explorer these can easily be seen when searching for the suspect DLL: As soon as I end the process locking the file (in this case OWST...

Add assembly and debug symbols (pdb files) to GAC - Wix Installer.

I am using Wix Installer (3) for deploying my application. How can I add both the output dll from one of the projects in my solution and the debug symbols (pdb files) to the GAC? (I have a C# application developed in Visual Studio 2008) ...