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

Is it possible to cast to a type using type name in a string variable?

Is it possible to build a type name and recast an object to a specific type? The target types will be contained in the same assembly, and there will be hundreds. Example code: var isPropertyInfo = objCollection as PropertyInfo; if (isPropertyInfo…
Robert Kerr
  • 1,291
  • 2
  • 17
  • 34
1
vote
1 answer

Typogrify equivalent for .NET

Does anyone know of, or use a library that has similar functionality to Typogrify (http://code.google.com/p/typogrify/) in a .NET project. Typogrify is a Python/Django library and I am looking for an equivalent that I could use in a .NET…
Tom Bell
  • 1,120
  • 2
  • 16
  • 33
1
vote
7 answers

ASP.NET DLL hell

I have third-party workflow software (Captaris Teamplate) that's referencing an assembly from my project that's referencing other assemblies from our project solution all through the GAC. When our application executes, it invokes a Captaris…
Sauli V
1
vote
1 answer

Assembly Serialization, Why?

I've read that assembly serialization (sgen.exe) can improve performance. What exactly is providing the improvement? Is it metadata on the Types? I would have thought this would be available through reflection! so why is it required in a separate…
learnerplates
  • 4,257
  • 5
  • 33
  • 42
1
vote
1 answer

Why does my MVC application report the GetExecutingAssembly Name as App_web_xxxxx.dll?

I am updating our CruiseControl.NET continuous integration environment from using the old Visual Studio 2008 Web Deployment projects to Visual Studio 2010. I do not want to use the Beta 2010 Web Deployment projects as I think I can make use of the…
David A Gibson
  • 2,013
  • 5
  • 35
  • 60
1
vote
1 answer

What is the usual way to add an external assembly to ASP.NET MVC project?

I have an external compiled assembly with HtmlHelper extension methods. I need to use it in the project so that there wouldn't be any absolute references to this assembly because the project is shared with Team Foundation Server. What is the usual…
eigenein
  • 2,083
  • 3
  • 25
  • 43
1
vote
1 answer

Could not load file or assembly error (System.Web.Helpers)

When trying to run my project/website I get the error message: Could not load file or assembly 'System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file…
Beastwood
  • 446
  • 3
  • 19
1
vote
0 answers

How do I determine if a particular assembly is available in Client Profile?

Given a particular reference assembly, what is the best way of determining whether it is available in a client profile or not?
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
1
vote
3 answers

Dependency Injection and loading dependent assembly in .NET

I'm working with dependency injection (DI from now on) to resolve components and am looking for an elegant solution to loading dependent assemblies in a .NET environment. As an explanation, lets say that we have 3 assemblies, A, B and C, where A…
joniba
  • 3,339
  • 4
  • 35
  • 49
1
vote
1 answer

Using Microsoft.NET standard library types in Unity configuration file

I am trying to register a type conversion in my config file as follows:
1
vote
2 answers

Could Not Load File or Assembly - Incorrect Format - Partial Binding

I am trying to run an existing solution on my local machine but every time I try to run it I get the error below [image below]. Could not load file of assembly 'HtmlToPdfBuilder' or one of its dependencies. An attempt was made to load a program…
Bex
  • 4,898
  • 11
  • 50
  • 87
1
vote
2 answers

ILMerge and Project References

I have a VS solution (.sln) that has the following structure. Project A Project B (contains reference to Project A as well as references to 3rd party assemblies like NHibernate, StructureMap, etc) I want to use ILMerge to roll the 3rd party…
ActionJackson
  • 11
  • 1
  • 3
1
vote
4 answers

.NET Assembly Referencing 101

I have the following class located in Assembly A. The assembly has a reference to StructureMap 2.6.1. public static class Bootstrapper { public static void Bootstrap(string databaseName) { …
1
vote
2 answers

Windows service runs like a scheduler service, not able to resolve dependent assembly references at run time

I have a windows service which runs like a scheduler, it extends an interface which can be implemented by other classes to become plugin to this service. All plug-ins (eg Plugin1, Plugin2...) would be dropped in sub folder of PlugIn such as…
rockvista
  • 479
  • 4
  • 9
1
vote
1 answer

Do assembly strong names change when new versions of .Net are released?

I'm trying to load an assembly that was installed as part of .Net 3.5 SP1 using Assembly.Load() by referencing its strong name. This works fine on my computer right now, but is it future proof? Will the strong name of core .Net assemblies change…
Ryan Michela
  • 8,284
  • 5
  • 33
  • 47