Stateful service referencing .net standard library #662
Comments
|
For issue 1, it looks like you did setup cluster using 2.8.219 SDK. Please download latest SDK (2.8.232) and then deploy your App to cluster created post 2.8.232 SDK installation. For issue 2, as @mkosieradzki already mentioned, this is duplicate of #639 and we are working on the fix. |
The latest nuget package (1.6.4) has the fix. Please add the property <PackageOutputFolder>true</PackageOutputFolder> to *.sfproj to change the package behavior that will include all the files from output folder. |
@geedsen, what version of VS 2017 from help about? Ensure you have 15.5.6 or 15.6 Preview 4. In Tools->Extensions and updates you should see 2.0.20180124.2 for the "Service Fabric Tools" extension version. Also, whatSDK version do you have of Service Fabric? I would ensure you have the latest 3.0.456 SDK version. After verifying these, you will need to open the .sfproj file and add true, then reload the solution as @ravipal points out. It looks like you have verified already in .sfproj or package.config that Microsoft.VisualStudio.Azure.Fabric.MSBuild = 1.6.4. |
VS and Tools are the same versions as you mention. SDK I was not sure so I installed the version 3.0.456. |
@geedsen, Can you please share your service project file? |
@geedsen your web project is targeting .NET Framework 4.7.1 which includes the netstandard assemblies so the web project package skips packaging this dll. Please note that the <PackageOutputFolder>true</PackageOutputFolder> will be used only for non-web projects that is targeting fullframework. Either you should change the target framework to 4.6.1 or make sure the cluster node is installed with .NET framework 4.7.1 |
Thanks! I'll will just do one of the two. |
Hi,
I'm trying to reference .net standard library from a stateful service, and I ran into a few problems
When the stateful service is .net core 2.0 and the .net standard library references Microsoft.ServiceFabric.Data 3.0.232-preview. I get the following error from this line
System.TypeLoadException: 'Type 'Microsoft.ServiceFabric.Data.ReliableStateManagerImpl' from assembly 'Microsoft.ServiceFabric.Data.Impl, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.'
However, it works when the .net standard library is using Microsoft.ServiceFabric.Data 3.0.232-preview
The text was updated successfully, but these errors were encountered: