dynamic-compile

ASP.NET: WCF and Could not load file or assembly 'App_Web_hamznvwf

I have recently begun working with AJAX-Enabled WCF, and have been plagued with this .NET caching issue - Could not load file or assembly App__Web__hamznvwf I was having issues with this 4 to 5 times a day on my server (Win 2003) - see first post So I moved my files off of the server and started running the project locally (Win XP). Ar...

VBCodeProvider not honoring OptionInfer in providerOptions?

I'm trying to dynamically compile some VB code in my C# project and I'm running into an issue with the VBCodeProvider. It doesn't seem to be honoring the OptionInfer flag that I'm putting in the providerOptions Dictionary. My code looks like this: var providerOptions = new Dictionary<string, string>(); providerOptions.Add("CompilerVer...

Dynamic compilation for performance

Hello everyone, I have an idea of how I can improve the performance with dynamic code generation, but I'm not sure which is the best way to approach this problem. Suppose I have a class class Calculator { int Value1; int Value2; //.......... int ValueN; void DoCalc() { if (Value1 > 0) { DoValue1RelatedStuf...