I'm getting runtime error about missing reference.
The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I'm using MVC application and used CSharpCodeProvider inside my code.
I do not get any compile error but getting runtime error for compileResult
as above why?
CompilerResults results = provider.CompileAssemblyFromSource(parameters, code);
I even added assemblies
tag in web.cofig
like following still same error.any clue why?
<assemblies>
<add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>