assemblies

In maven2, how do I assemble bits and pieces of different modules to create final distributions?

I have four maven project: client api jar web service war ui jar web interface war The service war will need to be packaged to include the client api jar, together with javadocs (so that each version of the service is distributed with a bundled client jar and web documentation). The web interface war will need the ui jar and all the ...

.NET: are regasm and caspol dependent on which user is logged

When using regasm and caspol to register and grant trust to assemblies, will it matter under which user account these utilties are executed? Could there arise a situation where assemblies are registered and/or granted trust only for certain users on a machine or domain? ...

Visual Studio Snippets: How to reference an assembly that is not in the GAC

Hi, I have a 3rd party non-signed assembly that I want to reference in several projects. So I created a snippet to add the reference and the relative imports I tried the following, and several variations with full paths, without file:// etc, to no avail. Any ideas? ... <Snippet> <References> <Reference> <Assembl...

HOw to create a strong named assembly?

I have a web site project in which my architecture is n layered architecture. I am using Micorsoft Enterprise library's validation dll. As of now this dll is not strongly named. I need to make that assembly strongly named. how can i do this. I saw some articles which depicts how to create strong named assembly by taking the vs 2008 comma...

Finding the assembly to go with the namespace

I have a C# script executor, which execute an arbitary chunk of c#, by wrapping it, and executing it in its own appdomain. To compile it correctly, I need to know what assemblies it needs. Is it the case that I need to extract the namespaces for the script and iterate through every assembly I can find, to find a match, or is thei...

How can the AssemblyName class be used for existing Assemblies?

This is another exam related question. How can I use the AssemblyName class to represent an existing assembly that already exists on disk? I am talking about from the perspective of using the AppDomain's instance method .Load() that takes an AssemblyName object as a parameter. I know what MSDN has to say about what the .Load() method w...

Referencing a Compiled Business Layer in a DotNetNuke Module

I was wondering if it is possible to create a DNN module that references a compiled business layer, instead of using just the data provider approach that's included in the default project. How would such a project be deployed? Just copy the compiled assembly that I'm referencing into the website bin folder? ...

Versioning issues with assemblies

Let's assume I have two assemblies: MyExecutable.dll version 1.0.0 MyClassLibrary.dll version 1.0.0 Now, MyExecutable.dll currently uses MyClassLibrary.dll's classes and methods (which include some algorithms). Most of those algorithms were made on the run, being that later I'll want to refine them if needed. This means, I won't c...

How to convert c# winforms application to an assembly?

I have a c# winforms application which is running fine... Now i want to convert it to an assembly and use it in an asp.net web application..... WHich dll i have to refernce? http://img265.imageshack.us/img265/2272/dlls.jpg ...

assembly.GetTypes() does not return all types

I try to lead the types from an .dll (which is also referenced in the executing project). I call: public static void LoadPlugin(string pluginFile) { Assembly assembly = Assembly.LoadFrom(pluginFile); foreach (Type type in assembly.GetTypes()) { // play with it } } It loads just ...

Secure C# Assemblies from unauthorized Callers

Is there any way to secure your assembly down to the class/property & class/method level to prevent the using/calling of them from another assembly that isn't signed by our company? I would like to do this without any requirements on strong naming (like using StrongNameIdentityPermission) and stick with how an assembly is signed. I rea...

I need an app.config file to be used by an assembly at assembly initialization

How do I ensure that an app.config file gets read on assembly initialization, for .Net 3.5-4 ? It's a class library assembly. VS2008 provides a menu to add an app.config file, but it's ignored so far. I need to use the app.config to provide information for logging from the assembly. Thanks in advance! ...

Separation of business logic

When I was optimizing my architecture of our applications in our website, I came to a problem that I don't know the best solution for. Now at the moment we have a small dll based on this structure: Database <-> DAL <-> BLL the Dal uses Business Objects to pass to the BLL that will pass it to the applications that uses this dll. Onl...

Strong Signing, and Updating A Referencing Assembly

Hi, I have two, third party assemblies: Foo.dll and ReferencesFoo.dll As noted, ReferencesFoo.dll is an assembly that has a reference to Foo.dll For my application, I need to resign these assemblies. I use ildasm/ilasm in combination along with a signing key to resign them, however, ReferencesFoo.dll still contains (in it's manifes...

Assembly not referenced error with Interactive Brokes ActiveX API

I'm attempting to use the Interactive Brokers ActiveX API, but I'm having a little trouble: error CS0012: The type 'System.Windows.Forms.AxHost' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. ...

CppCodeProvider assembly not found error in Visual Web Developer 2010

I opened a website in Visual Web Developer 2010 and at the top of the page there is an error squiggle on the master page declaration: <%@ Master Language="C#" AutoEventWireup="true" etc... The error is "Could not load file or assembly 'CppCodeProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its d...

How to register a namespace in app.config

How can i register a namespace in app.config so that it will become globally accessible. ...

Silverlight Out of browser and on demand loading of assembly

Hi, I want my silverlight application to work out of browser and it should support on demand loading of assemblies as well. If i implement on demand loading of assemblies, what will happen in case of out of browser support, will it work fine? or it will download all the assemblies during the installation itself. Thanks, Mrinal Jaiswal...

Error CS0117: Namespace.A does not contain definition for Interface..

I'm getting the error: 'Namespace.A' does not contain a definition for 'MyObjectInterface' and no extension method 'MyObjectInterface' accepting a first argument of type ... I've looked at this and this and neither seems to apply. The code looks like: public abstract class Base { public IObject MyObjectInterface { get; set; }...

Using two versions of the same assembly (system.web.mvc) at the same time

I'm using a content management system whose admin interface uses MVC 1.0. I would like to build the public parts of the site using MVC 2. If I just reference System.Web.Mvc version 2 in my project the admin mode doesn't work as the reference to System.Web.Mvc.ViewPage created by the views in the admin interface is ambiguous: The type...