in Education by
We have a small application that uses ServiceStack OrmLite for database access. I am currently investigating a broken feature that worked previously. There are two relevant entities: [Alias("MyOrder")] public class OrderEntity { [AutoIncrement] public int Id { get; set; } ... // Saved as JSV blob in the table public AppEntity Processor { get; set; } } [Alias("MyApp")] public class AppEntity { [AutoIncrement] public int Id { get; set; } ... [StringLength(64)] public string UserName { get; set; } public Guid? InternalUserId { get; set; } } Not sure if that matters but AppEntity is located in another DLL/assembly. Now there is a strange behavior. Processors are correctly saved in the table. I can also retrieve them in integration tests. However, in production code, when a list of OrderEntity objects is fetched, Processor property is null in every instance. I digged a little bit into ServiceStack code in the debugger and saw that the JSV string is fetched correctly in the first place but it seems to get lost on the way. This is the unit test that works: var connectionString = @"Server=..."; var connectionFactory = new OrmLiteConnectionFactory(connectionString, new SqlServerOrmLiteDialectProvider()); var orderRepository = new OrderRepository(connectionFactory); var orders = orderRepository.FindBySomeFilter(); // entries have not-null .Processor property This is a small application that doesn't work: var connectionString = @"Server=..."; var connectionFactory = new OrmLiteConnectionFactory(connectionString, new SqlServerOrmLiteDialectProvider()); var orderRepository = new OrderRepository(connectionFactory); var orders = orderRepository.FindBySomeFilter(); // .Processor is not retrieved / null for all entries Versions: .NET 4.5.2 ServiceStack 5.4.0 JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Some things you can try for resolving runtime dependency loading issues like this where it's unable to load the System.Runtime.CompilerServices.Unsafe dependency: Try manually adding a reference to the package, or if it's already installed try uninstalling/reinstalling it. Try adding true to your project As this is is a .NET Framework project you can try adding a binding redirect: Or if you already have a binding redirect for this configured, try removing it. Otherwise upgrading to the latest .NET Framework v4.7+ can also resolve loading runtime system dependencies like this.

Related questions

0 votes
    We have a small application that uses ServiceStack OrmLite for database access. I am currently investigating a ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 10, 2022 in Education by JackTerrance
0 votes
    I am trying to start the redis service on the Redis Server on Unbuntu 16.04 and I am facing this error: Failed ... you please help me? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    The strategy can retrieve a single record if the equality condition is on a key; multiple records may ... Operation in section Query Processing Techniques of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    I have a table containing the last comments posted on the website, and I'd like to join a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 8, 2022 in Education by JackTerrance
0 votes
    I have a table containing the last comments posted on the website, and I'd like to join a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 3, 2022 in Education by JackTerrance
0 votes
    I have a table containing the last comments posted on the website, and I'd like to join a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 30, 2022 in Education by JackTerrance
0 votes
    I have a table containing the last comments posted on the website, and I'd like to join a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 16, 2022 in Education by JackTerrance
0 votes
    Null Hypothesis must be rejected if P-Value is __________ than Significance Level. Greater Lesser Select the correct answer from above options...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
0 votes
    ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause. A special ... Schemes topic in chapter Concurrency Control of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Null hypothesis is accepted if p value is lower than predetermined significance value. (1)False (2)True...
asked Aug 10, 2021 in Technology by JackTerrance
0 votes
    I came across this code today AsyncInvoke(OnTimeMessageTimer, (object)null, (ElapsedEventArgs)null); Is there ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I have an Enum package com.javarnd.bbms.enums; public enum BloodTypeEnum { A_PLUS(1, "A+"), ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I am trying to set text and value for both td tag and input tag at the same time. But after ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    I am trying to set text and value for both td tag and input tag at the same time. But after ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
...