R
Robert Pettersson
Hi,
I have written a websevice that calls a class in the same solution that
generates Crystal Reports, runs them and exports them to pdf.
If I test the class from a WinApp everything works fine. But if I call the
webservice instead, that in turn calls the class that generates the reports,
I get the error:
--------------
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to process request. --> Load
report failed.
--------------
And if I call it from a webpage I get the error:
--------------
An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in Unknown
Module.
Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not
marked as serializable.
--------------
So the class works fine, but not if I run it through calling the webservice.
I can call the webservice that creates the class that creates crystal report
objects, but when I call the load method of the report I get the error.
In the error the webpage get, it complains abouit serialization, but I can´t
make that object serializable, since I haven´t written it.
Is it beacuse it is an old COM component that is called from a .Net
webservice?
If anyone have any suggestions on how to solve this problem I would be very
greatful!
/Robert
I have written a websevice that calls a class in the same solution that
generates Crystal Reports, runs them and exports them to pdf.
If I test the class from a WinApp everything works fine. But if I call the
webservice instead, that in turn calls the class that generates the reports,
I get the error:
--------------
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to process request. --> Load
report failed.
--------------
And if I call it from a webpage I get the error:
--------------
An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in Unknown
Module.
Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not
marked as serializable.
--------------
So the class works fine, but not if I run it through calling the webservice.
I can call the webservice that creates the class that creates crystal report
objects, but when I call the load method of the report I get the error.
In the error the webpage get, it complains abouit serialization, but I can´t
make that object serializable, since I haven´t written it.
Is it beacuse it is an old COM component that is called from a .Net
webservice?
If anyone have any suggestions on how to solve this problem I would be very
greatful!
/Robert