assemblies

When trying to run exe file without its dlls, there is no error message c#

Hi I have a c# application which has a dll added by reference. when I try to run the exe file from windows (after compilation) and the dll is renamed I want the application to show an error message ; Does someone know how can I do it in code? Thanks. ...

Difference between Assembly.CreateInstance and Activator.CreateInstance?

What is the difference between these calls? ...

Updating assembly causes error

I updated a single 3rd party assembly, and I am getting an error: Could not load file or assembly 'Some.Assembly, Version=1.0.3.15922, Culture=neutral, PublicKeyToken=62a6874124340d6e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Wh...

Is it possible to share type between ASMX code generated proxy and a type defined in another assembly?

Possible Duplicate: http://stackoverflow.com/questions/561867/sharing-data-types-from-multiple-web-references It would be better to start my question with a simple diagram: Client -assembly 1 --SharedDataType.cs (SharedDataType class definition - extension) -assembly 2 --CodeGeneratedFile.cs (SharedDataType class definition - code gene...

Is it possible to build an assembly, and force it to a specific build #?

Is it possible to build an assembly, and force it to a specific build #? ...

.Net logs for assembly load error?

I am trying to modify an application and replace the application into my machine, I have the source code. But every time I put my new binaries into the machine the DLL can't be loaded. I am quite sure the problem is the signing signature, but as there is several DLLs I can't know which one has problems. So I am wondering if an assembly i...

how to use sn.exe -Vr

From the MSDN help, it says the -Vr option is: Registers assembly for verification skipping. My question is when the -Vr is used, will it only change the assembly file itself or it will change the system registry as well. This matters whether I should issue this command in the development machine or in the final deployed machine. ...

How to configure Visual Studio to create all projects including a reference to a specific dll?

I am tired of adding a reference to System.ServiceModel in each project I create. Is there any way to automate this? ...

what is the need of assembly ? why we use them?

what is the need of assembly ? why we use them? is it possible to program without an assembly? is the assembly is created automatically? suppose i develop an asp.net web project is there any assembly involved? could you list example? ...

How a native C++ plug-in DLL can load a private assembly located in a specific directory

I have a native C++ DLL which is used as a plug-in in another application. This DLL has an embedded manifest and depends on a private assembly located in a folder external to the application. The application fails to load my plug-in DLL because my DLL depends on a private assembly which is never found (it is not located in the applicatio...

Changing windows workflow assemblies while running?

We’re about to deploy version 1.2 of a software project I was working on, up from version 1.1. As it stands right now, there are a few outstanding workflows that are still in progress that will break if we update the workflow and supporting assemblies to version 1.2 because the serialized workflows will be looking for version 1.1 of th...

How-to save a dynamically generated assembly that is stored in-memory?

Hi! I want to get my hands on an assembly by saving it to disc or reflect it at runtime. The assembly is generated dynamically in memory by third party. Does anyone know how to do this? //Daniel ...

Visual Studio 2008: Creating Single DLL from Solution with Many Projects

I have an ASP.NET web application developed in Visual Studio 2008, composed of 3 different projects (one for UI, one of BO and the third for DAL). How can I generate a single assembly file which holds all 3? Now it's generating 3 DLLS each for each project in the solution. ...

Assemblies vs Class Libraries (.NET)

Could anyone point out the advantage of using assemblies, in the 'context' of ASP.NET. As I understand it, assemblies run as executables, have a single entry point, and can be run inside an application domain, but I've found very few suitable examples on the web. ...

Exposing Entities Outside The Assembly

I'm looking for opinions on best practices with regards to passing entities beyond assembly boundaries. I'm using Linq-To-SQL, but the same question would apply to Entity Framework, NHibernate, etc. I have an assembly that I want to reuse in multiple projects. In it there are several entities which I have so far kept internal, however I...

C# Creating a assembly for future reference

Hello all, I'm trying to rebuild zlib.net and create an assembly I can reference in future projects in Visual Studio. However, after building from the supplied source code and moving the resulting zlib.net.dll to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies, while I can indeed add the zlib.net reference to ...

Sharepoint 2010 Project package: Cannot add a new project output assembly to the package

When creating a Sharepoint 2010 project in VB.NET and wanting to deploy an additional referenced assembly you cannot add a new project output assembly to the package. To replicate the issue: Open Sharepoint 2010 project in Visual Studio 2010 Open "package\package.Package" Select "Advanced" In the Additional Assemblies area select "Add...

Load an Assembly with lower privileges

What is the easiest way to load up an assembly, instantiate a class from it, but do so in a way that the assembly has limited privileges (sandboxed)? The code should not be able to communicate across the network, write to the file system, or execute processes. UPDATE I just stumbled upon Assembly.LoadFrom(string assemblyFile, Evidence...

ASP.NET websites referencing common, updatable Assembly

Hi all, I'm developing a component (HttpModule) that's used by a number of web applications on a .NET website, and I want the component to be easily maintainable. I've come up with something outlined below but wanted to see if there were any positive/negative thoughts or general feedback on the implementation, as I'm not 100% familiar w...

Determine which version of Silverlight an assembly is built under

I have a Silverlight project in which I compile to both Silverlight 2 and Silverlight 3 using the instructions here which imports MSBuild targets into the csproj file from two seperate locations holding Silverlight 2 and 3 targets respectively. The build/compilation seems to work, producing two different files, but I was wondering if (a...