The code was working perfectly on the server and then I added one object as a response of a web service method.
Nice!
Finally I went to a solution that was using that web service
What used to be ObservableCollections were now Arrays.
I tried to change the Service Reference Settings back to normal but it was as usual with the Collection Type parameter set as Observable Collection. What was happening?
Back to the code I tried everything I could think of in a Saturday afternoon and nothing changed until I commented the abstract class. That made everything go back to normal.
In the end I have changed all the abstract classes to normal classes and the abstract methods to virtual. It's not the same and the code is awkward but now, at least I can use my web services as usual.
By the way, I had a lot of private setters I had to get rid of. I was getting:
error CS0200: Property or indexer "propertyName" cannot be assigned to -- it is read only
So I had to change the properties from this:
public string Label { get; private set; }
To this:
public string Label;
So annoying!
By the way, thanks Fiddler2.
I don't usually post about unsolved issues but I don't use to write one post a day either
No comments:
Post a Comment