Questions tagged [assemblies]

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or .exe file).

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or a .exe file - which has an entry point).

If a .exe is a .NET assembly then it also contains a CLR header as a data block inside the PE header.

2372 questions
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

How to target asp.net MVC 1 when version 2 is installed on build machine

I have a site that was built using asp.net MVC version 1. I recently upgraded to visual studio 2010 which includes version 2. Upon opening the site now, I see that it believes the runtimes for MVC for this project are at version 2 so when I publish…
Sergio
  • 9,761
  • 16
  • 60
  • 88
1
vote
1 answer

Ignore assembly .dll in same folder as executable

I have a .NET application that crashes if I have the MySql.Data.dll assembly in the same folder as the executable but works fine if I move it. A different executable in the same folder is dependent on it so I need to keep it there. What can I do to…
Yousif Touma
  • 90
  • 1
  • 13
1
vote
2 answers

C# How to open Assembly using it's short name (or how to get Strong Name when have only short one)

I Have a two days of "googleing" and "msdning". All information i have is how to get short name if you have strong, have an assembly loaded or something else like this. But there is no information on how to load( or just get Full name, to load using…
EugenOS
  • 31
  • 6
1
vote
2 answers

External alias in XAML

I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4. This library defines a MenuItem class in the System.Windows.Controls namespace. No problems with SL3 because there is no MenuItem class elsewhere in the…
Pragmateek
  • 13,174
  • 9
  • 74
  • 108
1
vote
3 answers

What does it mean by logical grouping of modules in assembly?

What does it mean by logical grouping of modules in assembly? Can anyone please explain how .NET's CLR works with assembly ?
Praveen Sharma
  • 4,511
  • 7
  • 27
  • 17
1
vote
3 answers

how to restrict invoke method

I wonder if there is a way to restrict invoke call to a function? Let me make it clear. [Assembly:a1] Class A { function Af(); } [Assembly:a2] Class B { function Bf(){ //load Assembly a1 //InvokeMember to Af } } After…
Ashif Nataliya
  • 912
  • 2
  • 13
  • 28
1
vote
2 answers

CLS compliant types in P/Invoke helper assembly

Having a separate helper assembly containing only P/Invoke declarations for legacy 3rd party components, I wonder which of these two ways is The Better One™ if the assembly must be marked CLS compliant: Use Int32 in a public P/Invoke declaration…
Johann Gerell
  • 24,991
  • 10
  • 72
  • 122
1
vote
3 answers

.NET assembly information at runtime

I want to get information of assembly (classes in the assembly, methods and properties). The name of assembly will be entered through text box. For this i did like Assembly ass = Assembly.Load("System.Web") but it did't work. Sombody have solution…
munish
  • 11
  • 1
1
vote
0 answers

Does IIS cache assemblies and do I have to recycle the App Pool on deploy

I've never really been sure if you have to force an App Pool recycle on IIS after copying a new DLL to the bin path but I normally do it just to be sure. If a new assembly is copied into the bin path I thought that IIS would recache if it has a new…
Rodders
  • 2,425
  • 2
  • 20
  • 34
1
vote
1 answer

fxcop fails because of references on obfuscated assemblies

I need to run fxcop on a project that references an obfuscated commercial assembly (from dotnetremoting.com). Fxcop tries to load the obfuscated assembly and fails... I have got exactly the same problem with Mono Gendarme. It also tries to analyse…
Alexandre Victoor
  • 3,104
  • 2
  • 27
  • 27
1
vote
2 answers

Is loading a dependency assembly from the internet a good practice?

I know there are several ways to deploy a .net windows client application: There's Windows Installer, Click Once, a simple download & run, and loading the windows forms / WCF application in Internet Explorer (no to confuse the latter with WCF/E -…
Pablo Marambio
  • 1,562
  • 1
  • 15
  • 29
1
vote
1 answer

Is there a way to unload or reload the currently loaded runtime?

Ever since we started upgrading some of our projects to .NET framework 4.0, I've been running into a lot of issues regarding the following error: This assembly is built by a runtime newer than the currently loaded runtime and cannot be…
topwik
  • 3,487
  • 8
  • 41
  • 65
1
vote
3 answers

How to programatically find the bytecode (CIL) in a .Net executable/dll?

I would like to open a PE file (which i know is a .Net assembly) and find where the .Net bytecode is (ideally starting at the entrypoint). I know that the PE header data (entrypoint RVA) take me just to a stub which calls CorExeMain from…
PeterK
  • 6,287
  • 5
  • 50
  • 86
1
vote
2 answers

How to Fix Load From Context Error when Calling C++ DLL Function in C# Application

I'm trying to call a C++ function inside a dll from my C# application. The dll is from a program that would be installed on the user's machine, so the dll must be loaded at runtime. I'm getting the following exception: Managed Debugging Assistant…
user2481095
  • 2,024
  • 7
  • 22
  • 32