You want to "fetch some data" but you're preventing ABP from opening a database connection for you.
So, Begin a UnitOfWork yourself: https://aspnetboilerplate.com/Pages/Documents/Unit-Of-Work#iunitofworkmanager
Is your breakpoint on the foreach statement?
Since you have executed _cascadeLevelTypeRepository.GetAllListAsync(), EF fills the collection property for you.
Try putting the breakpoint on that statement instead. The collection property should be null.
//this jb would be one jobLocation in string format, and the method returns Task<ListResultDto<JobLocationDto>>!!!! var jb = JsonConvert.SerializeObject(ObjectMapper.Map<JobLocationDto>(jobLocation), new JsonSerializerSettings { ContractResolver = new ShouldSerializeContractResolver() });
Why would you do that, instead of following the approach mentioned in #p25789 and quoted in #p25912?
services
.AddMvc()
.AddJsonOptions(options => options.SerializerSettings.ContractResolver = new ShouldSerializeContractResolver());
Try restarting Visual Studio with Administrator privileges: https://github.com/dotnet/core/issues/730#issuecomment-353700213
If that doesn't work, then try this from an earlier comment: https://github.com/dotnet/core/issues/730#issuecomment-314611284
In your web project install the "System.ComponentModel.Annotations" "4.3.0" nuget package, which should automatically cause your web.config to update to add the following binding redirect.
<dependentAssembly> <assemblyIdentity name="System.ComponentModel.Annotations" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" /> </dependentAssembly>
And also cause System.ComponentModel.Annotations.dll to be copied to your bin folder. Once that happens your web project works.
Duplicate of #4361@aa0c462f-f0a7-42f5-9b22-a95cc6e6b3b3
I have the same issue. You might notice that the min files in *.Web.Mvc\wwwroot\view-resources\Areas\App\Views_Bundles are not updated.
I went to the command line and navigated to the root folder of the *.Web.Mvc project where the gulpfile.js is located, and I ran gulp --prod to minify the production files.
Publish the project and the updated min files should be included.
Duplicate of #4221@97fd1de7-6dc9-46c0-b082-0dc82644d0cc
Try this:
You can use this code in your Owin startup file (after app.UseAbp()):
app.RegisterDataProtectionProvider();
Can you show the error in Logs.txt?
What's your point?
ApplyAbpConceptsForDeletedEntity is called (https://github.com/aspnetboilerplate/aspnetboilerplate/blob/6eccadb5d454f8f3d26bbd330f0d1ffd0455cbd6/src/Abp.EntityFrameworkCore/EntityFrameworkCore/AbpDbContext.cs#L198:3hov3him/) [b:3hov3him]base.SaveChanges().