[Mono-dev] Is this a bug?
Christopher Bergström
cbergstrom at netsyncro.com
Sat Jan 14 22:06:20 EST 2006
Sometimes I noticed that stack trace isn't so useful on some of my
ASP.Net pages..
(Good code) public string SortOrder (string Field)
(Bad code) public static string SortOrder (string Field)
MS Error
public static string SortOrder (string Field)
Compiler Error Message: CS0120: An object reference is required for the
nonstatic field, method, or property 'System.Web.UI.Control.ViewState.get'
Then it gives the line to ViewState.. Which at least is close to the error..
Mono error
404 File not found /tmp/apache-temp-aspnet-0/b8f6b323/46454.dll
*Stack Trace: * ||
System.IO.FileNotFoundException: /tmp/apache-temp-aspnet-0/b8f6b323/46454.dll : /tmp/apache-temp-aspnet-0/b8f6b323/46454.dll
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool)
in <0x0000c> System.Reflection.Assembly:LoadFrom (System.String assemblyFile)
in <0x003c0> Mono.CSharp.CSharpCodeCompiler:CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
in <0x00022> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
in <0x00305> Mono.CSharp.CSharpCodeCompiler:CompileFromDomBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea)
in <0x00022> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDomBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea)
in <0x0003c> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDom (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit e)
in <0x00121> System.Web.Compilation.CachingCompiler:Compile (System.Web.Compilation.BaseCompiler compiler)
in <0x00259> System.Web.Compilation.BaseCompiler:GetCompiledType ()
in <0x000fa> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00029> System.Web.UI.PageParser:CompileIntoType ()
in <0x00011> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
in <0x00035> System.Web.UI.PageParser:GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context)
in <0x00010> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path)
in <0x001e3> System.Web.HttpApplication:GetHandler (System.Web.HttpContext context)
in <0x0085d> System.Web.HttpApplication+<Pipeline>__1:MoveNext ()
Any advise besides not making these errors? I can submit a test case as
it's reproducable every time.
Cheers,
C.
More information about the Mono-devel-list
mailing list