[Mono-bugs] [Bug 459564] New: null key exception running NumberService.asmx

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 16 15:44:32 EST 2008


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


           Summary: null key exception running NumberService.asmx
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


To reproduce,

1. Create file NumberService.asmx containing:

<%@ WebService Language="C#" Class="MathService.MathService" %>

using System;
using System.Web.Services;

namespace MathService
{
        [WebService (Namespace = "http://tempuri.org/NumberService")]
        public class MathService : WebService
        {
                [WebMethod]
                public int AddNumbers (int number1, int number2)
                {
                        return number1 + number2;
                }

                [WebMethod]
                public int SubtractNumbers (int number1, int number2)
                {
                        return number1 - number2;
                }
        }
}

2. Run it using Apache & mod_mono by typing to browser

http://localhost/WebservicesApp_Web/NumberService.asmx

Observed:


Server Error in '/' Application

--------------------------------------------------------------------------------

null key
Parameter name: key
Description: HTTP 500. Error processing request.

Stack Trace: 

System.ArgumentNullException: null keyParameter name: key  at
System.Collections.Hashtable.get_Item (System.Object key) [0x00000]   at
System.Web.Services.Description.MessageCollection.get_Item (System.String name)
[0x00000]   at System.Web.Services.Description.BasicProfileChecker.CheckR2305
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000]   at
System.Web.Services.Description.BasicProfileChecker.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000]   at
System.Web.Services.Description.WebServicesInteroperability.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.ConformanceChecker checker,
System.Web.Services.Description.ServiceDescription sd) [0x00000]   at
System.Web.Services.Description.WebServicesInteroperability.Check (WsiProfiles
claims, System.Web.Services.Description.ConformanceCheckContext ctx,
IEnumerable documents) [0x00000]   at
System.Web.Services.Description.WebServicesInteroperability.CheckConformance
(WsiProfiles claims,
System.Web.Services.Description.ServiceDescriptionCollection services,
System.Web.Services.Description.BasicProfileViolationCollection violations)
[0x00000]   at ASP.DefaultWsdlHelpGenerator_aspx.Page_Load (System.Object
sender, System.EventArgs e) [0x00000]   at System.Web.UI.Control.OnLoad
(System.EventArgs e) [0x00000]   at System.Web.UI.Control.LoadRecursive ()
[0x00000]   at System.Web.UI.Page.ProcessLoad () [0x00000]   at
System.Web.UI.Page.ProcessPostData () [0x00000]   at
System.Web.UI.Page.InternalProcessRequest () [0x00000]   at
System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]  

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433 


Apache error.log contains:

[Tue Dec 16 22:42:33 2008] [warn] handler: mono
[Tue Dec 16 22:42:33 2008] [warn] config = 0x18a0720
[Tue Dec 16 22:42:33 2008] [warn] dir_config = 0x18a0718
[Tue Dec 16 22:42:33 2008] [warn] idx = -1
[Tue Dec 16 22:42:33 2008] [warn] Alias not found. Checking for
auto-applications.
[Tue Dec 16 22:42:33 2008] [warn] try_connect: 0
[Tue Dec 16 22:42:33 2008] [warn] After setup_socket
[Tue Dec 16 22:42:33 2008] [warn] Sending init data
[Tue Dec 16 22:42:33 2008] [warn] Send init
[Tue Dec 16 22:42:33 2008] [warn] Initial data size: 494
[Tue Dec 16 22:42:33 2008] [warn] Accept: */*
[Tue Dec 16 22:42:33 2008] [warn] Accept-Language: et
[Tue Dec 16 22:42:33 2008] [warn] UA-CPU: x86
[Tue Dec 16 22:42:33 2008] [warn] Accept-Encoding: gzip, deflate
[Tue Dec 16 22:42:33 2008] [warn] User-Agent: Mozilla/4.0 (compatible; MSIE
7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR
3.5.30729; .NET CLR 3.0.30618)
[Tue Dec 16 22:42:33 2008] [warn] Host: localhost
[Tue Dec 16 22:42:33 2008] [warn] Connection: Keep-Alive
[Tue Dec 16 22:42:33 2008] [warn] Cookie:
ASP.NET_SessionId=BCE1B2205655D233E978DD1B
[Tue Dec 16 22:42:33 2008] [warn] Loop
[Tue Dec 16 22:42:33 2008] [warn] Command received: GET_SERVER_VARIABLES (1)
[Tue Dec 16 22:42:33 2008] [warn] GATEWAY_INTERFACE: CGI/1.1
[Tue Dec 16 22:42:33 2008] [warn] SERVER_PROTOCOL: HTTP/1.1
[Tue Dec 16 22:42:33 2008] [warn] REQUEST_METHOD: GET
[Tue Dec 16 22:42:33 2008] [warn] QUERY_STRING: 
[Tue Dec 16 22:42:33 2008] [warn] REQUEST_URI:
/WebservicesApp_Web/NumberService.asmx
[Tue Dec 16 22:42:33 2008] [warn] SCRIPT_NAME:
/WebservicesApp_Web/NumberService.asmx
[Tue Dec 16 22:42:33 2008] [warn] PATH:
c:\\mono\\bin;c:\\tools;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program
Files\\Common Files\\Roxio Shared\\DLLShared\\;C:\\Program Files\\Common
Files\\Roxio Shared\\10.0\\DLLShared\\
[Tue Dec 16 22:42:33 2008] [warn] SystemRoot: C:\\Windows
[Tue Dec 16 22:42:33 2008] [warn] COMSPEC: C:\\Windows\\system32\\cmd.exe
[Tue Dec 16 22:42:33 2008] [warn] PATHEXT:
COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[Tue Dec 16 22:42:33 2008] [warn] WINDIR: C:\\Windows
[Tue Dec 16 22:42:33 2008] [warn] SERVER_SIGNATURE: 
[Tue Dec 16 22:42:33 2008] [warn] SERVER_SOFTWARE: Apache/2.2.10 (Win32)
mod_mono/1.9
[Tue Dec 16 22:42:33 2008] [warn] SERVER_NAME: localhost
[Tue Dec 16 22:42:33 2008] [warn] SERVER_ADDR: 127.0.0.1
[Tue Dec 16 22:42:33 2008] [warn] SERVER_PORT: 80
[Tue Dec 16 22:42:33 2008] [warn] REMOTE_ADDR: 127.0.0.1
[Tue Dec 16 22:42:33 2008] [warn] DOCUMENT_ROOT: C:/silverlightwebservices
[Tue Dec 16 22:42:33 2008] [warn] SERVER_ADMIN: kobruleht2 at hot.ee
[Tue Dec 16 22:42:33 2008] [warn] SCRIPT_FILENAME:
C:/silverlightwebservices/WebServicesApp_Web/NumberService.asmx
[Tue Dec 16 22:42:33 2008] [warn] REMOTE_PORT: 51431
[Tue Dec 16 22:42:33 2008] [warn] Command received: SET_CONFIGURATION (13)
[Tue Dec 16 22:42:33 2008] [warn] Command received: SET_STATUS (8)
[Tue Dec 16 22:42:33 2008] [warn] Command received: SET_RESPONSE_HEADERS (2)
[Tue Dec 16 22:42:33 2008] [warn] Headers length: 107
[Tue Dec 16 22:42:33 2008] [warn] Command received: SEND_FROM_MEMORY (0)
[Tue Dec 16 22:42:33 2008] [warn] sending from memory without flush
[Tue Dec 16 22:42:33 2008] [warn] Command received: CLOSE (4)
[Tue Dec 16 22:42:33 2008] [warn] Done. Status: 0


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