+2007-10-15 Juraj Skripsky <js@hotfeet.ch>
+
+ * SessionStateModule.cs (Init): Use HttpApplication.LoadType,
+ don't swallow TypeLoadException.
+
2007-10-15 Marek Habersack <mhabersack@novell.com>
* SessionStateServerHandler.cs: adjust order of field
handler = (SessionStateStoreProviderBase) ProvidersHelper.InstantiateProvider (settings, typeof (SessionStateStoreProviderBase));
- try {
- Type idManagerType;
- try {
- idManagerType = Type.GetType (config.SessionIDManagerType, true);
- }
- catch {
- idManagerType = typeof (SessionIDManager);
- }
- idManager = Activator.CreateInstance (idManagerType) as ISessionIDManager;
- idManager.Initialize ();
+ if (String.IsNullOrEmpty(config.SessionIDManagerType)) {
+ idManager = new SessionIDManager ();
+ } else {
+ Type idManagerType = HttpApplication.LoadType (config.SessionIDManagerType, true);
+ idManager = (ISessionIDManager)Activator.CreateInstance (idManagerType);
}
- catch (Exception ex) {
+
+ try {
+ idManager.Initialize ();
+ } catch (Exception ex) {
throw new HttpException ("Failed to initialize session ID manager.", ex);
}