[Mono-bugs] [Bug 437691] New: System.InvalidCastException: Cannot cast from source type to destination type. at System.Web. HttpApplicationFactory.AttachEvents (System.Web.HttpApplication app) [ 0x00000]
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Oct 22 07:19:19 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=437691
Summary: System.InvalidCastException: Cannot cast from source
type to destination type. at
System.Web.HttpApplicationFactory.AttachEvents
(System.Web.HttpApplication app) [0x00000]
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: informatique.internet at fiducial.fr
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Since this commit :
http://anonsvn.mono-project.com/viewvc/branches/mono-2-0/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs?r1=108536&r2=115962&sortby=date
changelog :
2008-10-16 Marek Habersack <mhabersack at novell.com>
* HttpApplicationFactory.cs: when looking up application type
event handlers (the Application_* methods), look deep in the
parent chain - we must support private handler methods in base
types as well.
On mono 2.0 branch
On .NET 1.1 profile : create a global.asax.cs file with
public class Global : System.Web.HttpApplication
{
/// <summary>
/// Variable nécessaire au concepteur.
/// </summary>
protected void Application_Start(Object sender, EventArgs e)
{
Console.WriteLine("Application_Start called");
}
}
run xsp on the site
and you get :
System.InvalidCastException: Cannot cast from source type to destination type.
at System.Web.HttpApplicationFactory.AttachEvents (System.Web.HttpApplication
app) [0x000f4] in
/home/hubert/mono/monostable/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs:270
at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x0006a] in
/home/hubert/mono/monostable/mcs/class/System.Web/System.Web/HttpApplication.cs:213
at System.Web.HttpApplication.Start (System.Object x) [0x0002e] in
/home/hubert/mono/monostable/mcs/class/System.Web/System.Web/HttpApplication.cs:1450
if you hit F5, no error but, Application_Start is never called...
Please do some test before commiting garbage on 2.0 branch... (i've seen that
2.0.1 is landing...)
--
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