[Mono-list] Webservices and return data types

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


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

        public DataSet GetProductList(int start, int pagesize, int
category, string language)
          DataSet ds = new DataSet();
          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,
  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?


with regards

Kardos Bálint

More information about the Mono-list mailing list