[Mono-bugs] [Bug 81396][Maj] New - Can't use custom profile in web application
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Apr 18 19:10:18 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by pascalfresnay at free.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=81396
--- shadow/81396 2007-04-18 19:10:18.000000000 -0400
+++ shadow/81396.tmp.860 2007-04-18 19:10:18.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 81396
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com
+ReportedBy: PascalFresnay at free.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Can't use custom profile in web application
+
+Description of Problem:
+Can't use a custom profile class in an ASP.NET 2.0 application.
+
+Steps to reproduce the problem:
+1. create a new class (ex : CustomProfile) that inherits from
+System.Web.Profile.ProfileBase, add a property (ex : string CustomData{get
+{return "blabla";} )
+2. configure web application to use profile with inherance from previous
+class : <profile inherits="CustomProfile" />
+3. Try to access the custom profile property in a web page (ex in
+default.aspx load event handler : Response.Write(Profile.CustomData); ).
+4. Launch XSP2 with this web app.
+Actual Results:
+Compilation error :
+Default.aspx.cs(15,32) : error CS0117: `System.Web.Profile.DefaultProfile'
+does not contain a definition for `CustomData'
+
+Expected Results:
+web page displaying "blabla"
+
+
+How often does this happen?
+Always
+
+Additional Information:
+Here what we can see in xsp generated code :
+protected System.Web.Profile.DefaultProfile Profile {
+Line 68: get {
+Line 69: return ((System.Web.Profile.DefaultProfile)
+(this.Context.Profile));
+Line 70: }
+Line 71: }
+
+Profile should inherits from our custom class as specified in web.config.
+
+using XSP2 (Mono 1.2.3.1)
More information about the mono-bugs
mailing list