In the process of dynamic loading WebService, sometimes there will be a very slow, sometimes very normal, through the log to monitor the following two statements in exceptional cases, respectively, are time consuming for several minutes:
CompilerResults cr=csc.Com pileAssemblyFromDom (cplist, ccu);
And
The object obj=the Activator. CreateInstance (t);
Want to ask, what reason causes this kind of long time waiting, and how to solve, below is similar to the code