assemblies

Assembly Load and loading the "sub-modules" dependencies - "cannot find the file specified"

There are several questions out there that ask the same question. However the answers they received I cannot understand, so here goes: Similar questions: http://stackoverflow.com/questions/1874277/dynamically-load-assembly-and-manually-force-path-to-get-referenced-assemblies ; http://stackoverflow.com/questions/22012/loading-assemblies-...

Referenced assembly won't load in new thread on IIS 7

I have a process in which a user uploads a file to a web site where the file is then processed and uploaded into the database. The process of validating the file could take several minutes so as soon as the file is uploaded I create a new thread and I do my processing on this second thread. This works great on my local machine but does...

locked stored procedures in sql

Hi, I am not too familiar with sql server 2005. I have a schema in sql which has stored procedures with small lock on them. As I understand they were created using C#, all these locked procedures have a source file in C# with the code of the procedures. The thing is I can't access them. I need to modify one of these procedures but it ...

VS2010 - Assembly Information

Upgraded to VS2010 Ultimate and when right-clicking on a project -> properties -> application tab, you get the assembly information. Right now it says Copyright Microsoft, etc. I'd like to default this to our company's name so I don't have to do it by hand for each project. Is this possible? ...

C# app that uses Excel Interop, easy switch between 2003 2007?

I have an app written that just does really basic I/O on a spreadsheet. Read in a bunch of cells, do some sorting, and dump the output back into another spreadsheet. Works great on my machine. I have Office 2003 installed. When it runs on someone elses machine with 2007, it bombs, presumably due to the different versions of the Interop ...

Determine whether .NET assemblies were built from the same source

Does anyone know of a way to compare two .NET assemblies to determine whether they were built from the "same" source files? I am aware that there are some differencing utilities available, such as the plugin for Reflector, but I am not interested in viewing differences in a GUI, I just want an automated way to compare a collection of bi...

Problem with assembly loading in .NET

Hi guys, I have got two projects in my solution: Silverlight and standard one. The standard one references System.Xml assembly (version 4.0.0.0), however the Silverlight one references System.Xml assembly (v. 2.0.5.0). I want to make an instance of XmlWriter in my Silverlight project. Here comes the problem - the exception is thrown (fi...

How to find out how libraries work together?

I'm tasked to replicate functionality from an existing application. This application relies on .NET managed assemblies accessible from C#. I can import those DLLs in my new C# project but there is no documentation on how to use them. Yes, this is labeled as an "SDK", but does not contain examples or documentation. Any pointers on how I ...

Referencing both System.Web and System.Windows.Forms

What exactly is wrong with referencing both System.Web and System.Windows.Forms in my class library? For example, library could contain some code which needs to reference Web or WinForms-specific classes. ...

using ILMerge with .NET 4 libraries

Two problems: 1) Basic .NET Assembly Not Included in ILMerged Assembly I'm having trouble using ILMerge in my post-build after upgrading from .NET 3.5/Visual Studio 2008 to .NET 4/Visual Studio 2010. I have a Solution with several projects whose target framework is set to ".NET Framework 4". I use the following ILMerge command to mer...

Visual Studio (2008) - Which projects reference a particular assembly?

I have a solution with a decent number of projects (say, 30) and I want to find which of these projects reference a particular assembly. Here's a concrete example: In the Object Browser I can see that two different versions of the same assembly are referenced throughout the solution. I want to see which project(s) use each of these ref...

More information wanted on error: CREATE ASSEMBLY for assembly failed because assembly failed verification

I have a small application that uses SQL Server 2005 Express with CLR stored procedures. It has been successfully installed and runs on many computers running XP and Vista. To create the assembly the following SQL is executed (names changed to protect the innocent): CREATE ASSEMBLY myAssemblyName FROM 'c:\pathtoAssembly\myAssembly.dll...

Clarification required re: Use of .NET Assemblies in GAC - Set Up to use Globally?

Hi, I've done much reading and experimentation today regarding sigining of assemblies, and their installation into the GAC via various methods (mscorcfg.msc / drag and drop). What I thought, was that once a file was in the GAC, you did not need to make references from projects in Visual studio. I know that you CAN make references via t...

.Net assembly resolving confusion

After reading through the MSDN article How the Runtime Locates Assemblies and also reading this, I am still unsure about how weakly named assemblies are resolved at runtime. Eg. if I have a reference to some dll file in my project, I compile and deploy, will it pick up a new version of the referenced dll file if I just replace the old o...

Force to load System.Xml assembly v. 2.0.5.0

Hi guys, I have got a problem with missmatching the assemblies - on the server site I need to use System.Xml assembly in version 2.0.5.0. How to force loading this assembly on the client site (2.0.5.0 is a Silverlight assembly). ...

How to share a namespace between projects in .NET/C#/VS2008. Receiving error: "are you missing an assembly reference?"

What is the protocol to share a namespace between two projects when consequential projects will reference both of the namespaces? Obviously this is possible (System, mscorlib)... I've gotten different errors depending on the things I've tried. Right now I have two projects Blueprint and Domain that share the MainApp namespace (for ins...

Build number increment not reflected in AssemblyVersion

I've browsed through some of the discussion on auto-incrementing build numbers, but in the impatience of youth decided to roll my own and re-invent the wheel. I know there are probably better ways to go about this (which I'm definitely going to investigate), but my question centers more around the Assembly and/or Version classes. My ap...

Decompiling a *.DLL to assembly for .net in delphi 4

I love my Delphi 4 but at the same time I see the need to talk to windows .net This is a recompiled dll that I found on sourceforge.net/projects/delphinet/ (DelphiNet03.zip) by some nice people that fund the dll from some were. The real answer is to make this dll so that fits into Delphi as true Delphi code, and not a dll clip on. So ...

.NET framework is copied to 'compiler/CLR' and 'GAC?

The book of CLR via C# has this line at page 76. When you install the .NET Framework, tow copies of Microsoft's assembly files are actuall installed. One set is installed into the compiler/CLR directory, and another set is installed into GAC subdirectory I could find the GAC at C:\Windows\Microsoft.NET\assembly, but I cou...

VSTO install package How to check for prerequisites and skip them

I created Setup project for my Excel add-in project according to the article: Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer http://msdn.microsoft.com/en-us/library/cc563937(office.12).aspx I add prerequisites such as 2007 Interop assemblies(Office2007PIA...