I have existing code for an ASP .NET application that uses reflection to load dataproviders. I would like to re-use this code in a WPF application but it appears that BuildManager.GetType only looks through top level assemblies if the app isn't ASP .NET. Does anyone know how to get around this limitation?
The following code throws an exception saying DotNetNuke.Data.MySqlDataProvider can't be found in the System.Web assembly. The assembly that contains the DotNetNuke.Data.MySqlDataProvider class definitely exists in the bin folder of the compiled WPF app.
Dim objType Type = BuildManager.GetType("DotNetNuke.Data.MySqlDataProvider", True, True)