[Mono-list] Webservices and return data types

Bálint Kardos kardosbalint at gmail.com
Fri Jan 11 14:41:06 EST 2008


hi,

i'm trying to port a VisualStudio2005 project to mono. It has a
webservice with the following code:

"    public class WebShop : System.Web.Services.WebService
    {

        [WebMethod]
        public DataSet GetProductList(int start, int pagesize, int
category, string language)
        {
          [...]
          DataSet ds = new DataSet();
          objAdapter.Fill(ds,"Products");
          return ds;
         }
"

with the MS framework, the DataSet type is fully functional,
with mono, it generates an exception:

The remote server returned an error: (500) Internal Server Error.
System.TypeLoadException: Could not load type
'System.InvalidProgramException' from assembly
      'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr,
        System.Reflection.Binder binder, System.Object[] parameters,
        System.Globalization.CultureInfo culture) [0x00000]


What can i do to make it workable on both systems? Should I introduce
another return type? Which are the valid types?


-- 

üdvözlettel
with regards

Kardos Bálint


More information about the Mono-list mailing list