using System.Reflection;
using System.Web;
using System.Web.Compilation;
+using System.Collections.Specialized;
namespace System.Web.Configuration {
{
public static ProviderBase InstantiateProvider (ProviderSettings providerSettings, Type providerType)
{
- Type settingsType = Type.GetType (providerSettings.Type);
+ Type settingsType = HttpApplication.LoadType (providerSettings.Type);
if (settingsType == null)
settingsType = HttpApplication.LoadTypeFromBin (providerSettings.Type);
ProviderBase provider = Activator.CreateInstance (settingsType) as ProviderBase;
- provider.Initialize (providerSettings.Name, providerSettings.Parameters);
+ NameValueCollection col = new NameValueCollection (providerSettings.Parameters);
+ provider.Initialize (providerSettings.Name, col);
return provider;
}