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

CustomAttribute error on assembly getTypeInfo

I've got a c# static class which does: public static class AssStaticHelp { static private List Tipi=new List(); public static string searchManagerMethod = @"C:\StoredWeb\StoredWeb\searchManagerMethod"; …
Lorenzo
  • 673
  • 1
  • 11
  • 25
1
vote
2 answers

Is there a way to use IronPython objects and functions (compiled into an assembly) from C# code?

IronPython.net documentation says the MSIL in the assembly isn't CLS-compliant, but is there a workaround?
Jean-Pierre Chauvel
  • 946
  • 2
  • 9
  • 21
1
vote
1 answer

Why can I reference an assembly in an ASP.NET 5 project that doesn't include a reference to that assembly?

I have a DNX 4.5.1 ASP.NET 5 project called Foo and a class library project called Bar. Foo has a reference to Bar, and Bar references a nuget package called Baz. From within Foo, I can use types defined in Baz, despite that nuget package not being…
Bas
  • 1,946
  • 21
  • 38
1
vote
1 answer

What happens when a strong named assembly that depends on private assemblies is installed in GAC

If strong named assembly 'A' depends on private assemblies 'B' and 'C'. When I use 'gacutil.exe' to install A in GAC, what happens to B and C? I couldn't see them in the folder in GAC directory. Will it still refer to B and C location, i.e if B and…
1
vote
0 answers

Versioning for binding redirect in app.config .Net

I have binding redirect section in my app.config file.
1
vote
1 answer

Assembly.GetExecutingAssembly() not outputting correct file version

I see that the definition of GetExecutingAssembly() is that it returns the assembly that contains the code that is currently executing. The code that I have is Assembly.GetExecutingAssembly().GetName().Version However, when I run the program, that…
user1542422
  • 309
  • 1
  • 4
  • 13
1
vote
0 answers

Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0 or one of its dependencies

I am working with webservice in C# and I am unable to run the webservice file. Eventhough the target assemby is set to 4.5.1 I am unable to solve the error. Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral,…
siva s
  • 21
  • 4
1
vote
1 answer

Assembly fails to load in restricted AppDomain

I am trying to load an Assembly into a restricted AppDomain. If I do not specify any restrictions, the Assembly will load correctly: var permissionSet = new PermissionSet(System.Security.Permissions.PermissionState.Unrestricted); AppDomain…
Marcus Krahl
  • 674
  • 1
  • 13
  • 28
1
vote
2 answers

Get assembly using string

The program gets information about a class such as method/feilds/properties names return types parametres using reflection. Now I let the user type in the name and see the data. When working with the .Net libraries or my own assemblies works fine.…
Reza Taibur
  • 263
  • 3
  • 10
1
vote
2 answers

How to get all custom attributes for every controller action in project

I've managed to get a list of all controllers and their respective actions within my project. I am now attempting to create a custom attribute to be used on each action where I can set properties such as the action description Eg. "This creates a…
Rossco
  • 3,563
  • 3
  • 24
  • 37
1
vote
2 answers

Load with Roslyn compiled DLL at runtime multiple times

Currently I'm compiling and loading an assembly at runtime. The assembly contains always the same namespaces and classes. When I'm doing this multiple times in the same application instance, does always the newest assembly will be used, when…
BendEg
  • 20,098
  • 17
  • 57
  • 131
1
vote
1 answer

How do I find out where my application depends on BouncyCastle and log4net?

My application has a references to two packages BouncyCastle and log4net: How do I find if my application depends on them? I can't work out if I need to deploy them with my installer. I have noted a similar question. Update I am not sure when this…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
1
vote
1 answer

Assign Version Number for 10 SubProjects from common file

Our Application is in the windows .Net with c# We had 10-15 SubProjects which belong to one single project and we want to assign the Version Number for each of them(each dll which belongs to the Specific Sub- Project) through the common .cs file. So…
jay
  • 27
  • 6
1
vote
2 answers

Cannot load file or assembly with System.Web.Http, Version=4.0.0.0

I am trying to upload my application to a host, however, I keep getting this error and I don't know how to handle it. Even if I try to add the assembly to my project, it does not work. Anyone has any ideas? I am all yours. Thank you in advance.…
SmackDat
  • 183
  • 1
  • 4
  • 15
1
vote
0 answers

Can I set up a bindingRedirect to a wildcard version?

I have to update my bindingRedirects whenever I use a new version of a library, I've used Newtonsoft.Json in the example because it's a very popular dependency. For example:
Daniel James Bryars
  • 4,429
  • 3
  • 39
  • 57
1 2 3
99
100