[Mono-bugs] [Bug 578587] New: Global.asax's issue
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Feb 9 21:51:01 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=578587
http://bugzilla.novell.com/show_bug.cgi?id=578587#c0
Summary: Global.asax's issue
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: vdolosa at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Blocker: Yes
Description of Problem:
I'm trying to instantiate a shared(static) object in the Global. To do this, I
created a Global.asax that inherits my custom Global class that inherits
System.Web.HttpApplication. It works fine with ASP.NET 2.0 and higher on IIS
but when I execute it on XSP2 then browse; the message is Description: HTTP
500. Error processing request. And when I try to read the stack-trace; I can't
see any details about the problem with my code.
Steps to reproduce the problem:
1. Add a Global.asax that contains this code:
<%@ Application Language="C#" Inherits="Global" %>
2. Create a class named Global that extends System.Web.HttpApplication with
this code:
public partial class Global : System.Web.HttpApplication
{
public static Random rand;
public Global()
{
//
// TODO: Add constructor logic here
//
}
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
rand = new Random();
}
}
3. Create a Web Method that calls
Actual Results:
Server Error in '/' Application
Object reference not set to an instance of an object
Description: HTTP 500. Error processing request.
Stack Trace:
System.NullReferenceException: Object reference not set to an instance of an
object
at System.Data.XmlSchemaDataImporter.HandleDataSourceAnnotation
(System.Xml.XmlElement el, Boolean nested) [0x00000] in <filename unknown>:0
at System.Data.XmlSchemaDataImporter.HandleAnnotations
(System.Xml.Schema.XmlSchemaAnnotation an, Boolean nested) [0x00000] in
<filename unknown>:0
at System.Data.XmlSchemaDataImporter.Process () [0x00000] in <filename
unknown>:0
at System.Data.DataSet.ReadXmlSchema (System.Xml.XmlReader reader) [0x00000]
in <filename unknown>:0
at System.Data.DataSet.ReadXmlSchema (System.IO.TextReader reader) [0x00000]
in <filename unknown>:0
at System.Data.Design.TypedDataSetGenerator.Generate (System.String
inputFileContent, System.CodeDom.CodeCompileUnit compileUnit,
System.CodeDom.CodeNamespace mainNamespace,
System.CodeDom.Compiler.CodeDomProvider codeProvider) [0x00000] in <filename
unknown>:0
at System.Web.Compilation.XsdBuildProvider.GenerateCode
(System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000] in <filename
unknown>:0
at System.Web.Compilation.AppCodeAssembly.Build (System.String[]
binAssemblies) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AppCodeCompiler.Compile () [0x00000] in <filename
unknown>:0
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
context) [0x00000] in <filename unknown>:0
Version information: Mono Runtime Version: 2.6.1 (tarball); ASP.NET Version:
2.0.50727.1433
Expected Results:
Shows details about the web service.
How often does this happen?
Never work.
Additional Information:
Never tested with the lower version of Mono.
--
Configure bugmail: http://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