Assembly.Load(string name)
requires the long form of the assemblyname. In your case, that's probably something like
Assembly.Load("System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
You can also use the Assembly.LoadFrom(string name)
overload with a filename (like System.Web.dll) or a full path, but this is considered less secure than using the long form of the name, because you could load a wrong version of the assembly without knowing it.
Consider reading this article regarding Best Practices for Assembly Loading for a bit more background on why you need to use the LoadFrom overload carefully.
Next step would be to call GetTypes()
on your assembly (ass.GetTypes();
), and iterate over the returned array of types to get more information like methods and properties.