This line is generated from a WCF interface file generated by slSvcUtil for Silverlight 5:
GuardianEditObservationServiceClientChannel nested in GuardianEditObservationServiceClient = class(ChannelBase<IGuardianEditObservationService>, IGuardianEditObservationService)
The compiler gives me this error:
Error 64 (E380) Type “System.ServiceModel.ClientBase.ChannelBase<IGuardianEditObservationService,IGuardianEditObservationService>” cannot be used as ancestor for type “GuardianEditObservationServiceClient.GuardianEditObservationServiceClientChannel”, because it does not have the right visibility C:\Users\Mark\Documents\Visual Studio 2013\Projects\SW\GuardianEditObservation\EOServerServiceInterface\GuardianEditObservationService.pas 716 5 EOServerServiceInterface
This worked fine in my Silverlight 4 project with an OLD version of Oxygene.
What is it trying to tell me and how can I fix it since it isn’t MY code, but generated from the WCF service?
… time passes …
hmm… I’m seeing this in my generated code:
// <autogenerated>
// This Oxygene source code was generated by a tool.
// Runtime Version: 4.0.30319.34209
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
That makes it sound like slSvcUtil did NOT replace the file from the SL 4 version code. I’ll have to double check that slSvcUtil is really replacing the file.
Still, if anyone can tell me what the error message is trying to tell me, that would be appreciated.
… time passes …
Doh! Hidden in the slSvcUtil is an error. So hopefully when I resolve that, the generated code WILL work.
… time passes …
Bummer. I fixed the slSvcUtil problem, but generated code still won’t compile.
… time passes …
hmm… That autogenerated part still says the same version. Maybe it didn’t changed for SL 5? Or maybe somehow it figured out what to use from the service somehow? Odd.
… time passes …
Looks like slSvcUtil is a 5.x version. I’m guessing that 4.x comment is talking about .net.
So I still don’t know why this code won’t compile. Looks the same as far as I can see as when it was in the VS 2010 which compiled fine with Delphi Prism.
Anybody got any clues?
Also, for the code that won’t compile, this is the interface it is referencing in that same file, in case that helps:
type
[System.CodeDom.Compiler.GeneratedCodeAttribute('System.ServiceModel', '4.0.0.0')]
[System.ServiceModel.ServiceContractAttribute(&Namespace := 'http://www.swtechnologies.com/GuardianService', ConfigurationName := 'IGuardianEditObservationService')]
IGuardianEditObservationService = public interface