[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 17 10:45:43 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c6


--- Comment #6 from QuickJack . <test051102 at hotmail.com> 2010-09-17 14:45:40 UTC ---
Created an attachment (id=390245)
 --> (http://bugzilla.novell.com/attachment.cgi?id=390245)
Test Project

Hi Marek,

you find a test project in the attachment. The project opens in WinXP/ VS2008
as well as Suse 11.2/ MonoDevelop 2.4. After opening the project press CTRL+F5
to run the web application once and compare the results.

(1a) Displayed text in the browser under WinXP/ VS2008:
config!=null
auth!=null
rule!=null
more then 1 user! 

(1b) Displayed text in the browser under Suse 11.2/ current Mono 2.8 Preview/
MonoDevelop 2.4:
Error: You must supply either a list of users or roles when creating an
AuthorizationRule

(2a) Contents of web.config file under WinXP/ VS2008:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
   <appSettings />
   <connectionStrings />
   <system.web>
      <authorization>
         <allow users="me" />
      </authorization>
   <authentication mode="Windows" />
   </system.web>
</configuration>”

(2b) Contents of web.config file under Suse 11.2/ current Mono 2.8 Preview/
MonoDevelop 2.4:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
   <appSettings />
   <connectionStrings />
   <system.web>
      <authentication mode="Windows" />
   </system.web>
</configuration>

By comparing 1a and 1b we can conclude, that the application throws an
exception under Mono 2.8. By comparing 2a and 2b we realize, that Mono 2.8 did
not even add an <authorization> section.

I hope this helps a bit in finding and understanding the problems.


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list