brsecu wrote:
when i run that (see the code below) I get this error. Class1 cannot be serialized because it does not have a parameterless constructor.
Just add a default constructor as well that has no parameters:
public class Class1 : WebService
{
// default constructor
public Class1(){}
// overloaded constructor
public Class1(string s1, string s2, string s3)
{
// ...your code here
}
}
- Nick Parker Microsoft MVP - Visual C#
My Blog | My Articles