If you get this error when calling Spring-based service hosted on IIS, and your service uses NHibernate for data access, and your service returns some objects that must be serialized…check your object graph.
Make sure there is no NHibernate proxy in the object graph (i.e. do not use lazy loading).