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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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 <[EMAIL PROTECTED]>
* 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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs