Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 15 Mar 2006 00:11:29 -0800,    group: microsoft.public.dotnet.framework.sdk        back       


how do I retrieve by reflection all the types in web application?   
I would like your help to find out how do I retrieve by reflection all the 
types in web application?

In VS 2003 I used to do:

public class Global : System.Web.HttpApplication
{
    protected void Application_Start(Object sender, EventArgs e)
    {
        Type myType = typeof(Global);
        Module module = myType.Module;
        Type[] types = module.GetTypes();
    }
}

The thing is that it was changed in VS 2005.
There are several assemblies depend on project configuration (for each web 
page, master page, different language etc…)
Now when I do so I get only types under App_Code, I don’t get the reset 
types because they sit in different assemblies.
I also couldn’t find the way to find which assemblies are used on the web 
application.

10x for your help.
date: Wed, 15 Mar 2006 00:11:29 -0800   author:   Ronen Tidhar

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us