[Mono-dev] System.Configuration.ProviderSettings - Not fully implemented?

krdavis KEITH.DAVIS at ZUNISOFT.COM
Thu Aug 28 14:49:25 EDT 2008


I have submitted this issue to Bugzilla...


krdavis wrote:
> 
> Sorry for another noob question:
> 
> Any reason the following snippet of code would not work on mono 1.9.1:
> 
> Configuration config =
> ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
> 
> MembershipSection ms =
> (MembershipSection)config.SectionGroups["system.web"].Sections["membership"];
> 
> ms.Providers.Clear();
> ms.DefaultProvider = "DbMembershipProvider";
> 
> 			
> Assembly a = Assembly.GetAssembly(typeof(DbMembershipProvider));
> 
> System.Configuration.ProviderSettings ps = new ProviderSettings();
> 
> 			
> ps.Name = "DbMembershipProvider";
> 
> ps.Type = "EPRS.Membership.Providers.DbMembershipProvider, " + a.FullName;
> 
> ps.Parameters.Add("connectionStringName", "OpenEPRSConn");
> 
> ms.Providers.Add(ps);
> 
> config.Save();
> 
> 
> When the configuration including the above is saved, ps.Name and ps.Type
> show up in the config as expected, connectionStringName is missing.  The
> code in question has been verified to work on .NET 2.0 on Windows.
> 

-- 
View this message in context: http://www.nabble.com/System.Configuration.ProviderSettings---Not-fully-implemented--tp19193020p19206806.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list