[Mono-bugs] [Bug 462449] New: Webservice containing EntityRef returns Exception has been thrown by the target of an invocation
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 24 12:54:36 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=462449
Summary: Webservice containing EntityRef returns Exception has
been thrown by the target of an invocation
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 web service containing two files
1.1 Test.asmx:
<%@ WebService Language="C#"
CodeBehind="Business.dll"
Class="Test" %>
1.2 Business.dll source file:
using System.Collections.Generic;
using System.Linq;
using System.Web.Services;
using System;
using System.ComponentModel;
using System.Diagnostics;
[WebService()]
public class Test
{
[WebMethod()]
public List<Test> GetData()
{
var l = new List<Test>();
l.Add(new Test() { Toode = "sssss" });
return l;
}
public string Toode { get; set; }
private System.Data.Linq.EntityRef<e2> ykSUs1;
public e2 YKsUs1
{
get
{
return ykSUs1.Entity;
}
set
{
ykSUs1.Entity = value;
}
}
}
public class e2
{
public string Yksus { get; set; }
}
2. Call this web service under mod_mono/Apache from Silverlight application.
Observed:
1. Web service returns error:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception
has been thrown by the target of an
invocation.</faultstring></soap:Fault></soap:Body></soap:Envelope>
2. It is not possible to obtain stack trace of error.
--
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