On a button push, my webapp copies several classes in to the project and then checks if the new files contain a class named my.namespace.myclass with Type.GetType("my.namespace.myclass", false, true); This returns null even though i can see the class with correct namespace, and if I write my.namespace.myclass inside my code(after refreshing files inside VS), the class is usable. If i click the same button again, the type is now found; i am guessing the class were not compiled before, but it is now.
Is there some way to force compile the files before trying to get the type? I tried restarting the asp.net application programmatically, but the type is still null.
Any help appreciated