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

Assembly Redirect from GAC with different minor Version

We have a Reporting-Project using the Client-Version of SSRS, the RDLC-Files. To do so, we use the Nuget-Package "Microsoft.ReportViewer.Windows" with the only version avaliable. The File-Version is "11.0.3452.0". Everything works fine, but on ONE…
Matthias Müller
  • 3,336
  • 3
  • 33
  • 65
1
vote
2 answers

How to address an assembly's dependency in C# when using Assembly.loadfrom()

I have created a C++ wrapper class library to import a C++ native dll. And I have added a project reference of this C++ class library to my C# application and copied all the dependencies to the Debug folder. So far every thing is working fine…
m-abdi
  • 540
  • 1
  • 7
  • 30
1
vote
0 answers

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Private.CoreLib.ni.dll in .NET Core

based on this issue I tried another way for loading assembly so I wrote a snippet code for loading assembly public class Program { public static void Main(string[] args) { var name =…
NBM
  • 1,231
  • 4
  • 14
  • 18
1
vote
2 answers

Adding an assembly reference in Visual Studio Code

I'm just working on a web project in VS code. I'm used to using the full blown IDE, but I'm developing for Linux, so I'm trying to see if I can accomplish the same things in VS code. Basically it's gotten to a point where I need to add System.Web so…
1
vote
3 answers

AssemblyLoadContext Dispose .dll

In a MVC controller I use AssemblyLoadContext.Default.LoadFromAssemblyPath(pathToDll); to load an assembly. I want to delete or replace the given .dll file during runtime. This is not possible because the file is not disposed. Is there any way to…
jasdefer
  • 757
  • 12
  • 24
1
vote
1 answer

MVC Reference assembly missing

I have an issue refrerencing an assembly in a view for MVC. This namespace is part of a dll I have as part of the project, it works fine but if I use anything derectly from it inside a view it gives the below: An error occurred during the…
Monolithcode
  • 598
  • 8
  • 19
1
vote
0 answers

How to change generated assembly name to meaningful

Razorengine 3.9 is used to run many templates. It creates assemblies with names like CompiledRazorTemplates.Dynamic.RazorEngine_f06390a8eaeb403a8f8c121451f51dcf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null How to force it to create…
Andrus
  • 26,339
  • 60
  • 204
  • 378
1
vote
1 answer

MVC 4 MEF View cannot find the @Model from another assembly

I'm working on my custom CMS. I have the main application and modules. My problem is that whenever I load the view from my Module, the view cannot find the model assigned to that view. CS0246: The type or namespace name 'EAccounting' could not be…
Alvin Stefanus
  • 1,873
  • 2
  • 22
  • 60
1
vote
0 answers

Dependant assemblies of different version in a same project

Project Structure: As the above structure defines i havea main application (DLLTestAPP) and it has reference to 2 projects App1 and App2. Where App1 has a reference to a assembly (MyAssembly v1.0) and App2 has reference to the same assembly but…
1
vote
1 answer

Table of Contents for PDF/Printed Report in SSRS

Here's what I do know: I know that document maps and bookmarks can be utilized on screen but not in a pdf. SSRS does not have an out of the box ability to generate a printed Table of Contents with Page Numbers to a pdf. I know that a TOC can be…
1
vote
1 answer

How can I cleanly resolve conflicts for System.* assemblies between PCLs and UWP App

My Visual Studio 2015 (Update 3) solutions compiled with Windows SDK 10586 consists of some PCLs as well as some UWP apps. PCL => LagoVista.Common.Blinds references System.Runtime, Version=4.0.0.0 PCL => LagoVista.Common …
Kevin
  • 9,309
  • 12
  • 44
  • 51
1
vote
1 answer

c# SplashScreen Assembly Loaded does work

I want to show my application assembly loaded first when starting application. After application starts running, my code does not show anything. public Form1() { InitializeComponent(); AppDomain.CurrentDomain.AssemblyLoad += new …
Joe Martiniello
  • 323
  • 1
  • 3
  • 13
1
vote
1 answer

c# WPF get assemblyInfo.cs data

I want to read the Copyright and other attributes from the assemblyInfo.cs file. The problem is, that I can't find anything in the web. My AssemblyInfo.cs file: [assembly: AssemblyCopyright("Copyright ©Pascal Hurni 2016")] [assembly:…
BlueRedONe
  • 13
  • 5
1
vote
2 answers

Error loading System.Net.Http.Formatting

I am using System.Net.Http.Formatting in a webpart on a Sharepoint server but i am getting the below error. I understand that it is part of the MVC framework and I reference it through C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC…
SP1
  • 1,182
  • 3
  • 22
  • 47
1
vote
0 answers

.Net Website Error loading a Type from a DLL

We have a .Net website on IIS. Windows server 2012 R2. .Net 4.6.1 When we try to run it, it throws this error: Could not load type 'CodeSmith.Data.Linq.DataContextBase' from assembly 'CodeSmith.Data, Version=5.0.0.0, Culture=neutral,…
A.G.
  • 2,089
  • 3
  • 30
  • 52