Hello All,
I am designing a framework for the use of error codes in an already very developed application.
There are several web services that handle database interaction and then there is the UI. If an error occurs in the web service the error code will need to be passed to the UI and processed (for showing user friendly error messages or something like that).
Now, the web service methods pass three kinds of objects: ints, strings, and data sets
For ints and strings it is easy to pass the error code (The int can be the actual code and the string can just add the code to the end of it in some way). However, it is not that simple with a dataset. Therefore, the idea was passed around to use a generic container and put the dataset and the error code in that.
Here is where the issue is:
When I created the generic container and attempted to use it I received the following error:
(Lets assume my generic class is called ErrorHandler<DatasetType>)
"Cannot convert ErrorHandlerofDatasetType to type ErrorHandler<DatasetType>"
Im assuming the WSDL is interpreting the class incorrectly or something. Can someone please shed some light on this?
EDIT: I should probably mention that this is for a .NET 2.0 solution.