I can compile, get an instance, and call a method of any type in C # programmaticaly. There is a lot of information about this, including StackOverflow ( How can I evaluate a C # expression dynamically? ). My problem is that I am in a web environment and cannot save anything in the / bin directory. I can compile "in-memory" as the above link suggests, but then I cannot "unload" my custom assembly from the current AppDomain. After a while, this will become a huge memory problem. Is it possible to open a new AppDomain, compile a new in-memory assembly, evaluate some expression or access some member of this assembly inside this new AppDomain and safely kill AppDomain when it is done, all that without saving anything to the hard drive? Thanks in advance for any links, suggestions, etc.
Sasha
source share