ASP.Net , , BuildManager, , . , , , - .
var pg = System.Web.Compilation.BuildManager.GetCompiledType([relative path]);
, , , :
var pg = this;
Everything using Assembly.Location to dynamically load assemblies from this path is incorrect and may even break your application. If you do this, you run the risk of loading the old assembly - and when an ASP.NET worker finds out that she needs to recompile this thing, loading the new assembly may fail due to name conflicts. You are also looking at old code. Shorten it: don't do it.
source
share