Shailendra Saxena's Technical Blog

unable to load one or more of the requested types. retrieve the loaderexceptions

clock June 3, 2013 07:31 by author ShailendraSaxena

 Hi, I find the Issue unable to load one or more of the requested types. retrieve the loaderexceptions.. when Compile my solution.



This issue comes when you are loading your assembly at run time.

Either your complied assembly your are refering is not updated or its missing.

In my case I was refering assembly which was not updated when i put the latest assembly the issue resolved.


Error - Could not write lines to file 'xxx.FileListAbsolute.txt' Access to the path denied

clock April 13, 2013 06:45 by author ShailendraSaxena

I was using Visual Studio 2010 and all my source code was in TFS. when I copy the whole source code in different machine and solution was offline.

When I start building the source code I got the error " Error - Could not write lines to file 'xxx.FileListAbsolute.txt' Access to the path denied".


To resolve this issue I went to the Root physical folder for the solution and right click the folder and unchecked the read only Flag.

Hope it will help you also.


Generations in Garbage Collections

clock January 30, 2013 07:43 by author ShailendraSaxena


The heap is organized into generations so it can handle long-lived and short-lived objects. Garbage collection primarily occurs with the reclamation of short-lived objects that typically occupy only a small part of the heap. There are three generations of objects on the heap:

·         Generation 0. This is the youngest generation and contains short-lived objects. An example of a short-lived object is a temporary variable. Garbage collection occurs most frequently in this generation.

Newly allocated objects form a new generation of objects and are implicitly generation 0 collections, unless they are large objects, in which case they go on the large object heap in a generation 2 collections.

Most objects are reclaimed for garbage collection in generation 0 and do not survive to the next generation.

·         Generation 1. This generation contains short-lived objects and serves as a buffer between short-lived objects and long-lived objects.

·         Generation 2. This generation contains long-lived objects. An example of a long-lived object is an object in a server application that contains static data that is live for the duration of the process.

Garbage collections occur on specific generations as conditions warrant. Collecting a generation means collecting objects in that generation and all its younger generations. A generation 2 garbage collection is also known as a full garbage collection, because it reclaims all objects in all generations (that is, all objects in the managed heap).

Useful Links

clock January 30, 2013 07:08 by author ShailendraSaxena
Useful Links
C# Programming Guide
Extension Methods
Lambda Expressions



<<  August 2017  >>






Flag Counter


The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign In