Open abarberenaCPDS opened 5 years ago
Any updates @masnider @peterpogorski @suhuruli?
I can confirm that this is still happening, even with the latest and greatest of SF.
"Microsoft.ServiceFabric": "8.0.521", "Microsoft.ServiceFabric.Data": "5.0.521", "Microsoft.ServiceFabric.Diagnostics.Internal": "5.0.521", "Microsoft.ServiceFabric.FabricTransport.Internal": "5.0.521", "Microsoft.ServiceFabric.Services": "5.0.521", "Microsoft.ServiceFabric.Services.Remoting": "5.0.521", "MyInterfaces": "1.0.0", "System.Runtime.Serialization.Primitives": "4.3.0"
Hello SF Team,
I am wondering if your can help and provide some guidance about this exception.
I am following the guide Set up your development environment on Mac OS X. I successfully got it working.
SF cluster Runtime version is 6.4.625.1 SF SDK version in projects is 6.4.617 and 3.3.617
Running the test client, receives the exception:
Any ideas what could be causing the mismatch?
Here are a few screenshots and files to review, as well as details of the implementation.
Code.zip
Using yeoman, I have created a SF app and a stateless service, then, in VS for Mac, I've added 2 more projects to test the service. I have the following project structure:
MyInterfaces is defined as:
`using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Remoting;
namespace MyInterfaces { public interface IMyStatelessService : IService { Task MyMethodAsync();
}
}`
MyStatelessService.cs is defined as:
`using System; using System.Collections.Generic; using System.Fabric; using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Communication.Runtime; using Microsoft.ServiceFabric.Services.Remoting.FabricTransport.Runtime; using Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Runtime; using Microsoft.ServiceFabric.Services.Runtime; using MyInterfaces;
namespace MyStatelessService { internal sealed class MyStatelessService : StatelessService, IMyStatelessService { public MyStatelessService(StatelessServiceContext context) : base(context) { }
}`
And my TestClient is defined as:
`using System; using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Remoting.Client; using MyInterfaces;
namespace TestClient { class Program { static async Task Test_StatelessService() { string serviceAddress = "fabric:/MyApp/MyStatelessService";
}`