assemblies

load assemby at runtime

hi , I load my assembly at runtime (but this assemby is not refenced by the project) Assembly a = Assembly.LoadFile(@"fulpath\assName.dll"); after that I want to use one class from this dll by reflection obj = Activator.CreateInstance(Type.GetType("assemblyqualifiedname")); mi = obj.GetType().GetMethod("methodname"); mi.Invoke(ob...

Is it possible to reference a VS2005 website project from another project in the same solution?

I'd like to add nunit testing to a VS2005 C# ASP.NET website project - so that I can excercise methods in the App_Code directory. It's recommended that the tests are added as a seperate assembly so that the testing code does not get delivered with the website - in this lies my question: When I add a new project into the solution which h...

VS2008 Prefers GAC reference to Assemblies in Solution Folder

I am using some 3rd party libraries in my solution and have saved these in a separate source-controlled folder called 3rdParty. I have added references to the DLLs in this folder from the VS2008 IDE. However, I find that after saving, closing and opening the solution, the references have been changed to point to the assemblies in the GAC...

Javascript/Markup in Assembly

I'm trying to somehow render out javascript for a particular user control rather than just having a script include for the javascript file. The reason why I don't want a simple script include is because I need to append unique ClientID's to the dom elements at runtime. I could hardcode the javascript in a function and just append the ...

ASP.Net cannot create/shadow copy

I get this error repeatedly when developing ASP.Net applications: Cannot create/shadow copy 'XXXXX' when that file already exists Where XXXXX is a random DLL. Typically the DLL is one of the DLLs from Microsoft's Enterprise Library, but it varies. It's really random, and it's very frustrating. I will go hours without getting the e...

SQL Server 2005 Assembly Cast Invalid

I'm trying to call my assemblys SP and receive the following error: A .NET Framework error occurred during execution of user-defined routine or aggregate "Pmt_ImportJournal": System.InvalidCastException: Specified cast is not valid. System.InvalidCastException: at JournalImport.Pmt_ImportJournal(Int32 orderno) My SP in the assemb...

How can I include unit tests in maven assembly?

Reason: Our project is using Ant as commandline interface. After making a new assembly with maven's assembly plugin, I want to make initial tests to see if all has been properly assembled. Therefore I need to include the unit tests in the final assembly. After assembling, the initial tests would then be called sth like > ant initTest ...

Determine assembly versions used by/referenced in another assembly

Is there a tool that can list the exact versions and public keys of all assemblies referenced in another assembly? I inherited a solution that contains a medium number of projects each referencing various external assemblies. The test project cannot execute because libraries referenced by it have references to different versions of the ...

maven assembly ignores parent dependencies

My assembly descriptor applies the includes and excludes correctly when the dependencies are included in the pom file directly. However when I put the dependencies in the parent pom file the assembly:directory goal reports that the includes and excludes haven't been triggered. Do you know why maven-assembly-plugin ignores parent depend...

Assembly reference not resolving in the Web.config

I am developing WCF service hosted by IIS. I need to add KnownType attribute to my base class. One way of adding KnownType attribute is to add a section into the Web.config file like this: <system.runtime.serialization> <dataContractSerializer> <declaredTypes> <add type="MyBase, MyBaseDll"> <knownType type="MyDerived, MyDeri...

Asp.net Assembly Dependency Report

I am working on an asp.net web application project that has around 7 – 10 custom and commercial assemblies. When I publish to production I am looking for a tool that will generate a report that gives me list of assembly name, version, and maybe location (GAC or c:\app\library) for that project. This report can then be distributed to te...

How to get a previous revision of an assembly from an open source project

I want to make use of Castle.Facilities.Logging.dll, however getting the latest version from the trunk causes problems with my already referenced version of Castle.MicroKernal. Specifically, the error message is: "Assembly 'Castle.Facilities.Logging, Version=1.0.3.0, ...' uses 'Castle.MicroKernel, Version=2.0.0.0, ...' which has a highe...

Maven dependencies jar not usable

EDIT: I am basically running into the following documented issue. I am using the maven assembly plugin to generate a jar file that includes my dependencies so that my project can be run from a single file. However, the jar file is not being built properly it seems. The below was an attempt to try and work around the issue. Has anyone ru...

maven-assembly-plugin

hi, I'm trying to add a classpath to the jar generated by the maven-assembly-plugin. The assembly bulids, except the manifest has no classpath. Below is my configuration. Any help would be appreciated. Thanks! <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>make-assembly</id> <ph...

ASP.NET unloading assemblies in the bin

My ASP.NET application utilises a "Modules" system by using Type.GetType() on a fully-qualified string reference, and instantiating an object of that type, as you do. However, recently it has been throwing exceptions at not being able to find the types - but only occasionally. I haven't been able to replicate at will, but it usually ha...

Is there a way in Visual Stuio's compilation settings to combine other referenced DLLs into the built assembly?

I have an EXE that I want to distribute, but I don't want to ship all the associated DLLs with it (sort of). Currently I package them all together using .NET Reactor. I tried ILMerge a while back to achieve the same, but when I tried it I ran into trouble - .NET Reactor has never, ever failed me. Is there a way to achieve this in the ...

C# Assembly Loading and Late Binding

I'm reading this book on C# and .NET and I'm learning a bunch of cool stuff. I've read the part where the author talks about dynamically loading an assembly and creating an instance of a type in that assembly. In AS3, it's possible to do the same kind of stuff, except for one thing : you can ask the compiler to not compile a set of cla...

maven-jar-plugin and transitive dependencies

I'm using both the assembly and jar plugins to deploy my application. I'm also using the jar plugin to help me generate the classpath in the manifest file using <addClasspath>true</addClasspath> While that seems to work, the problem comes when I try executing the jar (it has a proper main class specified) - it will fail to locate a li...

How to extract/generate Meta data from an .NET assembly just like VS "Go to definition" do.

Hello! Does anyone know how to extract/generate Meta data from an .NET assembly just like VS "Go to definition" do. When you do this within Visual Studio you get generated CS class files in the temp directory with Meta data classes. I´m looking for an automatically way to extract/generate CS classes from an entier Assembly. Is there ...

Reference Java DLL in C# Assembly?

There are instructions here to create a C# assembly using the SimMetrics library. The link they provided to this library is at SourceForge. It looks like the most recent version of the SimMetrics library was created in Java. Is it possibly to compile a java DLL and then reference it in C# to be used as an assembly in SQL Server 2008? ...