Hello Mark,
Thank you for your interest in CS-Script.
You probably realize that the problem is caused by the CLR (not CS-Script) not being able to load MS C# compiler csc.exe.
In your case I think the CLR somehow is failing to locate the correct version csc.exe. One of the possible reasons is that when you host your services on IIS they may be configured to use an older version of runtime and as the result csc.exe cannot be found.
If you exhaust all options you can load csc.exe by yourself instead of relying on the CS-Script engine, which always tries to load the csc.exe of the CLR the engine was compiled against.
I have attached the sample demonstrating the loading the actual CLR compiler by the host application. You may try the approach but in your case you will need not
VB.NET (VBCodeProvider) but C# compiler.
Oleg Shilo
--------------------------------------------------------------------------------------------
Internet:
http://www.csscript.net E-Mail:
csscript...@gmail.com