assemblies

Deploying and running .NET assemblies on a worker computer

I have a basic task framework, where task such as doing some content processing, report generation, error log watcher, mailer, etc., is encapsulated in an ITask interface, which has a Run method, and other status related members. These tasks are either run continuously on a schedule, or on demand. They are hosted either as a windows serv...

FullTrust vs SkipVerification

What is the purpose of FullTrust when SkipVerification exists? I understand that FullTrust will give an assembly full access to any limitation that can be implemented through a CAS permission check. What I don't understand is why anyone would ever use it. We have access to SkipVerification which will completely skip the verification che...

Naming a New Assembly for Application Front End

Hi there, Im after some suggestions for naming a new assembly. The project is a multi-tier rich client app using WPF and we've got good names for all the assemblies (data and business layers) except for the front end. The assembly in question holds the actual user interface and classes for data binding. We want it to be something shor...

Adding an ActiveX dll to a .Net project as reference works on one dev's machine, but not on another one?

Good afternoon, we're having a semi-weird problem here with a legacy activex dll that needs to be used in a .net project and strangely it works perfectly fine (adding it as a reference and all its functionality) on one developer's machine, but on no other ones, the build-server complains about a faulty reference etc etc. Whenever e.g. ...

Starting services that depend on side-by-side assemblies using Windows Installer

Hi, We are in the process of updating the construction of our product's .msi package for Windows Server 2008. The main component of our install is an application that is run as a Windows service. There is also a configuration application that gets run during install to set up registry entries for use by the service. The service and t...

SVN Repository Structure and Shared Assemblies

We are trying to restructure our SVN repository and include a lib folder under the trunk to house assemblies that the project depends on. I am curious to know how you guys are dealing with shared assemblies? Do you have multiple copies of them that span across different trunk lib folders? Do you have some kind of build process that will...

The Order of Assemblies Being Loaded

I have a few .Net assemblies, same version, same file name, but located at different location: Program folder C:\Windows C:\Windows\system32 GAC Now, which location's assembly will be loaded first? ...

How can I add a reference in a Visual Studio website project type?

Normally when you add a new assembly you have to go into Visual Studio and add a reference (the .dll is stored in the /bin directory). Since this website compiles on the fly, is it possible for me to just add the .dll to the live website, and then use that .dll in an .aspx page? Currently in Visual Studio I can't see the .dll unless I ...

Where to put unique adjustments when using abstract base class

Hi, I´m having some trouble deciding in which way to go... I've got this application which consists of one base project, and one project for the application, the application project contains code targeting a specific system, system application. The base project is an abstract class containing abstract methods which each system speci...

Maven assembly:assembly

Hello I am trying to create a custom descriptor ref in my parent pom which packages all dependencies with sources. I got the assembly.xml nailed down pretty well, but when I add it to my base POM assembly:assembly fails like so: [INFO] [assembly:assembly] [INFO] ------------------------------------------------------------------------ [E...

How can I add a probingPath at runtime (and not through app.config)?

I need to add an assembly probing path at runtime, not through the element in app.config. Is there a way to do this? The reason is so that my XOML-only workflow that resides in it's own folder can know where to find it's related DLLs (i.e. containing custom Activities). Currently I am getting fusion errors because the CLR is probing t...

Error loading XAML Markup at runtime when hosted in strong named assembly

I have a mixed Winform/WPF application which frequently throws the exception: Could not load file or assembly <Full Assembly Name> or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT 0x80131040) Error at object <Object Name> in markup file <file>.xaml T...

Linking CIL with native code

In C++/CLI the following is sample code that links native and managed code within the same file. #include "stdafx.h" #pragma unmanaged __declspec( dllexport ) void func2() { //native code goes here } #pragma managed void func_clr() { func2(); //managed code calls native } #pragma unmanaged __declspec( dllexport ) void func() ...

C# Dynamic dll system problem

Hi, I have an application that loads dlls dynamically. The application and the dlls use a Functions.dll that can be a diferent version for the application an for each dll, but in execution the application and the dlls all use the same dll version (the one used by the EXE) and share the static variables... How can i force them to use ...

Change assembly version for multiple projects

How can I change the assembly version in the file AssemblyInfo.cs for multiple projects. We have around 75 project in our solution and we need to change the version almost every week. What is the fastest way to do this. ...

How to ship gdiplus.dll but not have Windows use it?

i have an application that has a dependancy on gdiplus. i need the application to also run on Windows 2000. i want to include GDIPlus in the application directory, so that Windows 2000 computers will function, but if the machine is Windows XP, Windows Vista, Windows 7, etc, i want it to use the version of GDIPlus that ships, and is upda...

What information can I find about a build from the assembly info?

Following on from my previous question, what useful information can you retrieve from a .net assembly about the build process? I know I can look at the AssemblyVersion to get major and minor application version, and when the build took place. Can I find: Who did the build? i.e. user name. On what machine? Which O/S version? Anything ...

What is the best way to implement versioning of a binary?

I am thinking of the following design: static class AppVersion { public static string BuildDate { get; set; } public static string Version { get; set; } public static string GetVersion { get; set; } } A few questions on this: How can I get the build date? How can I...

Register assembly in ASP.NET (VS 2005) and web.config

Hello, I am applying a new version of an assembly to a web project and have found that I am going to have to replace about 500 instances of the Register Assembly tag at the top of each web control. I considered registering it in the web.config but when I try this and remove the "Register" tag from the controls, i receive the "unrecognize...

Execute code on assembly load

I'm working on wrapper for some huge unmanaged library. Almost every of it's functions can call some error handler deeply inside. The default error handler writes error to console and calls abort() function. This behavior is undesirable for managed library, so I want to replace the default error handler with my own which will just throw ...