- try {
- t = System.Type.GetType (type_name, true);
- } catch (Exception e) {
- throw new HttpException (String.Format ("Failed to load httpHandler type `{0}'", type_name), e);
+ t = System.Type.GetType (type_name, false);
+ if (t == null) {
+ IList tla = System.Web.Compilation.BuildManager.TopLevelAssemblies;
+ if (tla != null && tla.Count > 0) {
+ foreach (Assembly asm in tla) {
+ if (asm == null)
+ continue;
+ t = asm.GetType (type_name, false);
+ if (t != null)
+ break;
+ }
+ }