Questions tagged [.net-assembly]

A group of classes and namespaces compiled into a binary file, written in a .NET-specific language such as C# or VB.NET.

An assembly in .NET terminology is a set of modules assembled into a single process assembly (executable, ".exe") or a library assembly (".dll").

Assembly is the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions for .NET-based applications. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality.

3347 questions
1
vote
0 answers

Performances considerations when using referenced assemblies compiled with an older .NET release

Despite of being old, AForge is mature, stable and fulfill very well its job in server production code. However, I noticed that the AForge that comes with NuGet is compiled with NET 2.0. I am using .NET 4.5.2. Because I need AForge for a client…
Larry
  • 17,605
  • 9
  • 77
  • 106
1
vote
0 answers

GAC contains only a few assemblies after installing Mono on Ubuntu

I'm trying to run .NET code which was previously complied on Windows by copying it to Ubuntu Server with Mono installed. I used sudo apt-get install mono-complete and it ran fine. Now I run gacutil -l and it outputs only the following…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
1 answer

Exclude certain files from compiling in directory

I am trying to create multi file assembly by creating .netmodules for respective Visual Studio projects. These .netmodules are being created successfully. Command used to produce the modules: csc.exe "/out:$(ProjectDir)$(ProjectName).netmodule"…
ivorykoder
  • 1,000
  • 3
  • 14
  • 32
1
vote
1 answer

Could not load file or assembly - working on local not on production - ASP.net

I have this problem, where the project works fine on local, it just doesn't wortk on production on local, everything works on IIS Express on production, IIS 7.5, windows 2008 r2: Exception type: ConfigurationErrorsException Exception message:…
Danish
  • 741
  • 4
  • 17
  • 31
1
vote
1 answer

Entity framework core - wouldn't use migrations

I wish to use ef without migrations! I would like to manipulate the tables and cols manually. Is this possible? Don't find a solutions for that problem. I would like to do this so, because my entity-models are in different assymblys.
Flo
  • 1,179
  • 3
  • 15
  • 43
1
vote
1 answer

C# Launching another WPF program from a byte array

First of all, let me say that I've looked through this, and i still haven't been able to find a great solution to my problem. (I will elaborate in post) Now to the point. I have a program which I want to secure with a login. My setup is as…
Mikk809h
  • 11
  • 2
1
vote
3 answers

ApplicationSettingsBase ConfigurationErrorsException multiple assemblies

Updated Question (to point out the problem correctly) I'm using a lib, which implements a class that derives from ApplicationSettingsBase. namespace MyLib { public sealed class GlobalLibSettings : ApplicationSettingsBase { …
WPFGermany
  • 1,639
  • 2
  • 12
  • 30
1
vote
1 answer

F# project autogenerate bindingRedirect

I'd like to play around in F# with our company internal libraries. They are published to our nuget store. Problem: There is Library A, version 1.0.0.0, which depends on library B, version 1.0.0.15. Possibly, there might be dependency from A to C,…
netchkin
  • 1,387
  • 1
  • 12
  • 21
1
vote
0 answers

Assembly resource loader IsXaml or not

I try to create resource loader. However I have small issue. How can I replace IsXaml and write Nunit test (simulate xaml file) ? public static string GetPartialName(this Assembly assembly) { var fullName = assembly.FullName; …
1
vote
1 answer

Is there a tool to compile "selective" assemblies containing only certain types?

Say I have a large project containing the types A through Z. What if, for whatever reason, I want to package and distribute just type A to some client(s)? Obviously I cannot just compile A into its own DLL unconditionally; it may depend on some…
Dan Tao
  • 125,917
  • 54
  • 300
  • 447
1
vote
0 answers

Sharing public key certificate

I'm working on a piece of software in Visual Studio. I created a PKCS#12 archive in Visual Studio to strong name sign my assemblies. I then extracted the public key from the archive using OpenSSL. I realise that I must remove the PKCS#12 archive…
1
vote
1 answer

C# how to install Windows.Media.Transcoding

In my current project I need to use the Windows Media Transcoding API. However, I can't manage to install it. Here you can see I'm using the correct namespace. using System.Windows.Media.Transcoding; I looked around on NuGet, but couldn't find it…
Jonty Morris
  • 797
  • 1
  • 10
  • 25
1
vote
1 answer

Microsoft.IdentityModel.Logging: Strong name signature could not be verified

I'm trying to use the Microsoft JWT Library. I have downloaded and compiled the source code, but when I try to run it, I have the following error: Could not load file or assembly 'Microsoft.IdentityModel.Logging, Version=1.0.0.0, Culture=neutral,…
Patrick8639
  • 31
  • 1
  • 7
1
vote
1 answer

Web API Unit Test NLog assembly error

I'm trying to add unit tests to an existing Web API 2 application. In my test project i've added a reference to the .dll of my Web API from it's obj/release folder. The Web API uses NLog. I initiate my controller i want to test var controller = new…
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109
1
vote
1 answer

Could not load file or assembly 'System.Data.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

I'm facing this problem. I've searched for all sorts of solutions for this but to no avail, finally decided ask here. The web application is a .net 4.0 deployed with IIS in a staging server, it has been running fine up until recently. It runs fine…