You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of SyncWork most of time show this exception System.TypeLoadException: Unable to load Orleans.SyncWork.ISyncWorker`2,Orleans.SyncWork from assembly Orleans.SyncWork
#60
Open
realkarimfahmy opened this issue
Oct 18, 2024
· 3 comments
Usage of SyncWork most of the time show this exception
System.TypeLoadException: Unable to load Orleans.SyncWork.ISyncWorker`2,Orleans.SyncWork from assembly Orleans.SyncWork.
I have followed your repo example
Steps to reproduce the behavior:
I downloaded this package to 3 projects (API, Grains, Silo)
API code: var jobGrain = _clusterClient.GetGrain<IPasswordVerifierGrain>(Guid.NewGuid()); var result = await jobGrain.StartWorkAndPollUntilResult(request);
2- Grains project has the same implementation as the repo example
Silo project has this usage: .ConfigureSyncWorkAbstraction(Environment.ProcessorCount - 2) // Add this line to configure Orleans.SyncWork
See Result
The text was updated successfully, but these errors were encountered:
What is the difference between the two screenshots posted? it's just randomly failing sometimes, and other times not, within the same project, config, runtime, etc?
i started a PR to add an additional sample #61 while using separate client/silo projects. This does work, though i'm relying on the "project" reference instead of a "package" reference against the orleans.syncwork assembly.
i'm not sure if you'll be able to see any difference in setup, but i'm not really sure how to help w/o a repro
Usage of SyncWork most of the time show this exception
System.TypeLoadException: Unable to load Orleans.SyncWork.ISyncWorker`2,Orleans.SyncWork from assembly Orleans.SyncWork.
I have followed your repo example
Steps to reproduce the behavior:
var jobGrain = _clusterClient.GetGrain<IPasswordVerifierGrain>(Guid.NewGuid());
var result = await jobGrain.StartWorkAndPollUntilResult(request);
2- Grains project has the same implementation as the repo example
.ConfigureSyncWorkAbstraction(Environment.ProcessorCount - 2) // Add this line to configure Orleans.SyncWork
See Result
The text was updated successfully, but these errors were encountered: