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