This project is read-only.

Creating a module, Data Migration - update fails

Topics: Writing modules
May 11, 2012 at 3:27 PM
Edited May 11, 2012 at 3:29 PM

I am new to Orchard CMS and am currently following the 'Creating a module with a simple text editor' guide on the Orchard site documentation...

I have however hit a problem, the module itslef has been created and activated, but when i created added the code to the Migrations.cs to do an update (the UpdateFrom1 method it says there is an update, but it fails with An error occured while updating the feature SimpleCommerce: Exception has been thrown by the target of an invocation.

Thinking I had coding something wrong I have started with a fresh src project, and this time copied and pasted the code - still the same.... Does anyone know why?

Hopefully it's something silly...

This is the article I am following -






May 12, 2012 at 7:20 AM

Attach a debugger and find out. A full stack trace can also probably found in app_data\logs