Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.DllNotFoundException : Unable to load shared library 'Rpcrt4' on Ubuntu 18.04.4 #2

Closed
jordimontana82 opened this issue Mar 7, 2020 · 3 comments

Comments

@jordimontana82
Copy link

Hi! Amazing work on this new nuget package!

I've only come across this error which is thrown on linux (Ubuntu 18.04) when trying to call .SaveChanges() straight after a .AddObject(). Same code works fine on a Windows 10 machine.

       //service here implements IOrganizationService
        using (var ctx = new XrmServiceContext(service))
        {
            ctx.AddObject(new Account() { Name = "Test account" });
            ctx.SaveChanges();

            var account = ctx.CreateQuery<Account>()
                        .ToList()
                        .FirstOrDefault();
        }

System.DllNotFoundException : Unable to load shared library 'Rpcrt4' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libRpcrt4: cannot open shared object file: No such file or directory Stack Trace: at Microsoft.Xrm.Sdk.Client.NativeMethods.UuidCreateSequential(Guid& ptrGuid) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.CreateSequentialGuid() at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SetNewId(Entity entity) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.TraverseEntityGraph(Entity entity, Action1 onEntity, Action3 onLink, IEnumerable1 path)+MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.GetSaveChangesResult(SaveChangesResultCollection results, Entity entity) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.GetChangeRequestsFromChangedTree(SaveChangesResultCollection results, Entity entity, IEnumerable1 path, IList1 circularLinks)+MoveNext() at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.GetChangeRequests(SaveChangesResultCollection results, Entity entity)+MoveNext() at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges(SaveChangesOptions options) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges()

@MattB-msft
Copy link
Member

Thanks for the report, We have identified the issue in an underlying library we are using and are working on a fix for it now.

@MattB-msft
Copy link
Member

We have pushed the fix for this into the 0.0.1.11-Alpha nuget package that is deploying now, Please do check the release notes as we also updated a number of discovery related operations.,

@jordimontana82
Copy link
Author

@MattB-msft Awesome! I've tried now and it works perfectly with a few tests I had. Thanks a mill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants