I am currently trying to load the assembly dynamically from within an asp.net httphandler. I have a DLL which is designed as part of a separate library and is in reference to DLL in my project and it is true that the copy is truly deployed with the service. I am creating a temporary object to get the assembly path and I have confirmed the existence of the dll within the temporary ASP.NET files folder, but calling GetTypes () throws exceptions.
I do something like this: I can not add Assembly to GAC because that is what I am trying to do with service (it seems that the sandbox service loads the assemblage, if necessary) and I can not find anything Since you compile your web application with a reference to the assembly, so I do not need to load it using the assembly. GetTypes should be available by using: string assembly = new class inasappped (). GetType (). Assembly. place; Type [] type = system Reflection. Assembly. Loadfread Gettimes ();
type [] type = type (SomeClassInAssembly) .Assembly.GetTypes ();
Comments
Post a Comment