Replies: 2 comments
-
|
it is funny that I have been stuck for this issue for 3 days, and found the answer/mitigation in 20 minutes after I post the question here. I got the hint from I checked my dev box, which has both Fabric and Fabric SDK installed for local ServiceFabric simulator. After uninstalled both, the TypeLoadException is gone. I didn't use GAC tool at all. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
That's weird behavior. Glad you were able to fix it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hitting a weird error with the ServiceFabric.Mocks.7.1.5\lib\net48\ServiceFabric.Mocks.dll. I don't have this issue before with ServiceFabric.Mocks.4.x.x
Error: System.TypeLoadException: Method 'Initialize' in type 'ServiceFabric.Mocks.MockReliableStateManager' from assembly 'ServiceFabric.Mocks, Version=7.1.0.0, Culture=neutral, PublicKeyToken=c8a3b3cecf8974ee' does not have an implementation.
at Anvil.Test.CommonUtils.BaseForgeActionSetup.TestInitialize()
I compared but didn't find any difference on Initialize(), between ServiceFabric.Mocks.7.1.5 and ServiceFabric.Mocks_4_1_1. Posted here in case someone hits it as well. ( I am using Windows 10, not Windows 11)
-------------------------------7.1.0.0--------------------------------------------------------------------------
// Decompiled with JetBrains decompiler
// Type: ServiceFabric.Mocks.MockReliableStateManager
// Assembly: ServiceFabric.Mocks, Version=7.1.0.0, Culture=neutral, PublicKeyToken=c8a3b3cecf8974ee
// MVID: B28CA8F1-0778-4DD7-826F-42291B7105AE
// Assembly location: E:\CxCache\ServiceFabric.Mocks.7.1.5\lib\net48\ServiceFabric.Mocks.dll
...
namespace ServiceFabric.Mocks
{
public class MockReliableStateManager :
IReliableStateManagerReplica2,
IReliableStateManagerReplica,
IStateProviderReplica,
IReliableStateManager,
IAsyncEnumerable,
IStateProviderReplica2
---------------------------------4.1.1.0------------------------------------------------------------------------
// Decompiled with JetBrains decompiler
// Type: ServiceFabric.Mocks.MockReliableStateManager
// Assembly: ServiceFabric.Mocks, Version=4.1.1.0, Culture=neutral, PublicKeyToken=c8a3b3cecf8974ee
// MVID: 165D23E3-9D8E-4FDA-B7D9-801E8D655F51
// Assembly location: E:\temp\temp\ServiceFabric.Mocks_4_1_1.dll
...
namespace ServiceFabric.Mocks
{
public class MockReliableStateManager :
IReliableStateManagerReplica2,
IReliableStateManagerReplica,
IStateProviderReplica,
IReliableStateManager,
IAsyncEnumerable,
IStateProviderReplica2
Beta Was this translation helpful? Give feedback.
All reactions