[Solved] Dynamic Compilation NullReferenceException error
The problem was in the class Program Main(){ method = cc.CompileCode(file, “testNamespace”, “Class1”, “webRequest”, true, arguments);} The string classname was not the good one and didn’t pointed to the real document I wanted to compile. The good path was method = cc.CompileCode(file,”testNamespace”, “WebRequest”,”webRequest”, true, arguments);} That’s why the Type type; couldn’t get something instead of … Read more