[Mono-bugs] [Bug 331183] New: public constructor of a WebService is not found in mono 1 .2

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 5 11:59:08 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=331183

           Summary: public constructor of a WebService is not found in mono
                    1.2
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: x86
        OS/Version: RHEL 4
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: f.meyer at tetco.fr
         QAContact: mono-bugs at ximian.com
          Found By: Development


Hello,

The following sample does work in .NET 1.0 / .NET 2.0 / mono 1.1 but fails in
mono 1.2 (mono 2.0 profile). See below the output.

using System;
using System.Text;
using System.Web.Services;


class MyClass : System.Web.Services.WebService
{
        public MyClass(string s)
        {
                Console.WriteLine("Public Constructor...({0})", s);
        }
}

class test
{
        static void Main(string[] args)
        {
                MyClass _myClass1 = new MyClass("_myClass1");
        }
}

mono test.exe

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Web.Services.WebService..ctor () [0x00000]
  at MyClass..ctor (System.String s) [0x00000]
  at test.Main (System.String[] args) [0x00000]


-- 
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