System.InvalidOperation.Exception
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, Im creating a webservice in VS-2005, and populating all the values into an object, i specified the return type.While running the webservice it shows an error message saying System.InvalidOperation.Exception.Please find below snippet of the web method.(Thanks in Advance :-) [Webmethod] public classEid initiate(String GetValue) { classEid objClassEid=new classEid(); objClassEid.firstname="Adam"; objClassEid.lastname="Henry"; return objClassEid; } Error Message Description : SERVER ERROR in '/'Application For non-array types,you may use the following attributes:XmlAttribute,XmlText.