Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "exlnt"

One piece of very good news. The transaction MSDTC error that I was getting on the hosted application has been resolved with the code change you suggested! Thanks very much for helping with that! :D

So I tested my code after making this change. I am now getting the error below in my app service "Update" method where I use "UOW".

System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.

The error is triggered on this line of code:

await _unitOfWorkManager.Current.SaveChangesAsync();

I found more details on this error in the logs, see below.

There are some validation errors while saving changes in EntityFramework:- Note: The Note field is required.

So I ran the code in debug and just before the SaveChangesAsync is executed. I can see that "Note" is populated. [https://drive.google.com/open?id=0B5HAoiVVXzY7VnVEZnBtejRxWGM])

Why am I getting error?

Yes, If you read my OP, I forced 1.6.8 and still I am getting the errors.

I added it to the MyProjectDataModule.cs class in the EF project.

My DBContext class in the EF project already has all the constructors as described in your documentation. Is this all i need to remove the MSDTC based transactions? Do I need to make any other code changes?

Thanks!

<cite>ismcagdas: </cite> Hi,

Thanks for sharing your solution. What was the problem with jquery.sparkline ? Maybe, we need to fix something in our template.

Thanks.

Can you help me resolve my error? Thanks!

<cite>ismcagdas: </cite> Hi,

@hikalkan offered a better solution, I didn't know about this, sorry for that. You can change your transaction strategy and it should work in this case for you as expected.

Please see this doc carefully <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#transaction-management">http://aspnetboilerplate.com/Pages/Docu ... management</a>. You need to update ABP to latest version. Don't miss this part especially "In addition, your DbContext should have constructors as described in DbContext section of this document."

I read the document above. I added the code below into the class Ops17CoreModule, PreInitialize method of my core project. What references do I need in order to make this work? Also, is this the right location for this change?

Configuration.ReplaceService<IEfTransactionStrategy, DbContextEfTransactionStrategy>(DependencyLifeStyle.Transient);

Thanks!

That worked. There were references in the app.config and web.config files throughout the solution for the newer version of EF package.

Thanks! I installed TypeSript for VS2015 now.

After that I get clean build, but now I get error on startup.

Method not found: 'Void EntityFramework.DynamicFilters.DynamicFilterExtensions.Filter(System.Data.Entity.DbModelBuilder, System.String, System.Linq.Expressions.Expression`1&lt;System.Func`3&lt;!!0,!!1,Boolean&gt;>, !!1)'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.MissingMethodException: Method not found: 'Void EntityFramework.DynamicFilters.DynamicFilterExtensions.Filter(System.Data.Entity.DbModelBuilder, System.String, System.Linq.Expressions.Expression`1&lt;System.Func`3&lt;!!0,!!1,Boolean&gt;>, !!1)'.

It looks like someone else reported something similar here: [http://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=3992&p=9018&hilit=Upgrade+error#p9018]), his solution did not work for me :(

I tried this suggestion too: [https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1451#issuecomment-264413168])

But then I get this error message:

Could not load file or assembly 'EntityFramework.DynamicFilters' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Thanks, I performed the ABP upgrade and ran into a build error after upgrade. I posted another forum thread about that issue. Please let me know.

Thanks very much! Apologies for taking your time on this issue!

Sometimes one cannot see the forest due to the trees! :lol:

Showing 201 to 210 of 263 entries