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
0 answers

Why does implicit conversion require "inbetween" assembly?

I have two projects, Project A is a WPF Application and Project B is a WPF Control Library. Project A References default WPF stuff. But not System.Windows.Controls.Ribbon. Project B defines a class MainWindow which inherits from RibbonWindow,…
LuckyLikey
  • 3,504
  • 1
  • 31
  • 54
1
vote
3 answers

.net dll dependencies checking

i have small winforms application, which uses about 20 external dlls. how can i check for all their existance, while application initializing? to say:"u dont have some dll, install it corrctly".
eba
  • 959
  • 2
  • 11
  • 14
1
vote
2 answers

What's the best way to identify a WinCE device and call a correct DLL based on the results?

I've been struggling with this for a while. I have to different devices that I need to run a corporate app on. It is written using .NET CF 1.1. Both have their own managed dlls that need to be called to get the serial number off the gun. I have yet…
IronicMuffin
  • 4,182
  • 12
  • 47
  • 90
1
vote
2 answers

Silverlight 4 - Type.GetType() not working across assemblies

Basically the problem is that I'd like to invoke a method in an unreferenced assembly, but can't seem to find the right call for instantiating the class. I've tried things like a simple Type t = Type.GetType("MyApp.Helper") which returns null, and…
Chris
  • 13
  • 3
1
vote
3 answers

Why can't my .NET CF application find a DLL In the same directory as the executable?

I have a .NET CF 1.1 application that has been running perfectly fine for years. Occasionally, I get a help desk ticket with the following error message (generic): Method not found: MethodName AssemblyNamespace.Class The DLL is there,…
IronicMuffin
  • 4,182
  • 12
  • 47
  • 90
1
vote
1 answer

System.Reflection

let us consider im having an application AAA. From my application im loaded an assembly named as BBB.When im in BBB path, i need to get the AAA Assembly name at run time. how to accomplish this? Thanks in advance
user518333
  • 45
  • 3
1
vote
1 answer

using MVC 2 instead of MVC1

Hi I was trying to setup atomsite, i dont have MVC 1 on my system, so i changed it to MVC 2 I got his error: how do I fix it? Error 30 Assembly 'AtomSite.WebCore, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc,…
Bart
  • 4,830
  • 16
  • 48
  • 68
1
vote
1 answer

How do I determine what version of Silverlight an assembly is compiled against?

Given a assembly how do I determine (in code) what version of Silverlight that assembly is compiled against? So I want a method that does this public static decimal GetSilverlightVersion(string assemblyPath) { Magic goes here } and it should…
Simon
  • 33,714
  • 21
  • 133
  • 202
1
vote
1 answer

How to use One-Click Publish and Visual Studio to add an assembly to the remote server's GAC

I'm using Visual Studio's one-click publish and web deploy to publish my .net MVC application to a remote server. This works very well. Now I'd like to have one of the assemblies installed into the GAC of the remote server. How do I do this using…
1
vote
4 answers

.NET Single File Assembly Clarification

In my book, "Pro C# 2008 and the .NET 3.5 Platform", there is a line of text that is confusing me, within the context of Single-File assemblies. In a great number of cases, there is a simple one-to-one correspondence between a .NET assembly and the…
contactmatt
  • 18,116
  • 40
  • 128
  • 186
1
vote
0 answers

TypeLoadException: Two assemblies with same name

On a visual studio solution containing multiple projects, one compiling to give A.dll and other intending to create A.exe.The A.dll is used as a reference in the project creating A.exe. When attempting to execute project exe prompts the…
TheLoneWolf91193
  • 415
  • 7
  • 19
1
vote
1 answer

Unity 2 fails to load registered type when testing with VS2010 unit tests

I have set up an Unity 2.0.414.0 container using app config. My solution structure looks like this: Project A: dependency factory using Unity with unity xml config file. Project B: Several types that are implementations of interfaces used in Unity…
ViktorZ
  • 901
  • 1
  • 10
  • 26
1
vote
1 answer

Does SmartAssemby support multiple-assembly app?

My console application contains one exe and 10 dlls. I want to and can only obfuscate five of the dlls. The rest are shared dlls and contain common code so they cannot be obfuscated. With the current design the obfuscated assemblies also cannot be…
Metro
  • 1,121
  • 1
  • 13
  • 33
1
vote
1 answer

relations between assembly and project in VS

I'm a bit confused. Looking at some existing code here at my university, I see that a project is always somehow related to a single assembly. I'm new in c# and I read a bit about assemblies and modules but I didn't find anything about the relation…
user429400
  • 3,145
  • 12
  • 49
  • 68
1
vote
1 answer

Silly Namespace Question

Ok, I have a c# project named BusinessLayer which produces an assembly called BusinessLayer and the namespace is BusinessLayer. Inside of this project, I am using folders to store code. One folder is called FilterElements and it has folders called…
Mike Malter
  • 1,018
  • 1
  • 14
  • 38